Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 95.64 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 186.9 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2088/0.2088, allocations: 44.23 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003323, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1337, allocations: 61.92 MB / 471.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D): time 0.3358/0.4695, allocations: 59.52 MB / 0.5186 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03627/0.5058, allocations: 13.9 MB / 0.5322 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01721/0.5231, allocations: 305.4 kB / 0.5325 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01206/0.5352, allocations: 2.983 MB / 0.5354 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03592/0.5711, allocations: 8.55 MB / 0.5437 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004982/0.5762, allocations: 0.7952 MB / 0.5445 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06771/0.6439, allocations: 48.48 MB / 0.5919 GB, free: 8.461 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01108/0.655, allocations: 6.488 MB / 0.5982 GB, free: 1.914 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003371/0.6584, allocations: 1.335 MB / 0.5995 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003495/0.662, allocations: 1.76 MB / 0.6012 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001207/0.6632, allocations: 180 kB / 0.6014 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.6662, allocations: 0.9519 MB / 0.6023 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002856/0.6691, allocations: 2.022 MB / 0.6043 GB, free: 11.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001929/0.6711, allocations: 1.049 MB / 0.6053 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008293/0.6794, allocations: 7.223 MB / 0.6124 GB, free: 3.355 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.6794, allocations: 0 / 0.6124 GB, free: 3.355 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6794, allocations: 0 / 0.6124 GB, free: 3.355 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003455/0.6798, allocations: 0 / 0.6124 GB, free: 3.355 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1751 * Number of variables: 1751 Notification: Performance of Generate backend data structure: time 0.01408/0.6939, allocations: 5.362 MB / 0.6176 GB, free: 13.92 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.6939, allocations: 12.03 kB / 0.6176 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003297/0.6972, allocations: 0.8427 MB / 0.6185 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04333/0.7406, allocations: 7.993 MB / 0.6263 GB, free: 5.043 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.7508, allocations: 3.873 MB / 0.63 GB, free: 1.117 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.7512, allocations: 299.7 kB / 0.6303 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001792/0.753, allocations: 411.7 kB / 0.6307 GB, free: 432 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/0.7764, allocations: 11.45 MB / 0.6419 GB, free: 4.227 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002809/0.7767, allocations: 59.48 kB / 0.642 GB, free: 4.168 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001419/0.7782, allocations: 187.9 kB / 0.6421 GB, free: 3.984 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003702/0.7819, allocations: 2.085 MB / 0.6442 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0196/0.8015, allocations: 9.558 MB / 0.6535 GB, free: 8.316 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07449/0.876, allocations: 45.12 MB / 0.6976 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/0.8882, allocations: 4.034 MB / 0.7015 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2723/1.161, allocations: 9.065 MB / 0.7104 GB, free: 191 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/1.161, allocations: 52.95 kB / 0.7104 GB, free: 191 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=169): time 5.009e-06/1.161, allocations: 0 / 0.7104 GB, free: 191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=191): time 0.05012/1.211, allocations: 18.24 MB / 0.7282 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/1.211, allocations: 198 kB / 0.7284 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005367/1.216, allocations: 4.95 MB / 0.7332 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003603/1.217, allocations: 53.39 kB / 0.7333 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001718/1.218, allocations: 3.631 MB / 0.7368 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000653/1.219, allocations: 0.7361 MB / 0.7376 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002041/1.219, allocations: 125.2 kB / 0.7377 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002312/1.219, allocations: 0.5685 MB / 0.7382 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.222, allocations: 2.145 MB / 0.7403 GB, free: 178 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004001/1.226, allocations: 5.946 MB / 0.7461 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004018/1.23, allocations: 3.503 MB / 0.7496 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.545e-05/1.23, allocations: 44 kB / 0.7496 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01325/1.244, allocations: 8.657 MB / 0.758 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.415e-05/1.244, allocations: 68.03 kB / 0.7581 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.244, allocations: 132.7 kB / 0.7582 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/1.246, allocations: 1.081 MB / 0.7593 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00407/1.251, allocations: 1.419 MB / 0.7607 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00814/1.259, allocations: 8.195 MB / 0.7687 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004902/1.264, allocations: 339.5 kB / 0.769 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006908/1.264, allocations: 381.8 kB / 0.7694 GB, free: 147.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (750): * Single equations (assignments): 745 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003493/1.268, allocations: 2.49 MB / 0.7718 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007556/1.269, allocations: 410.7 kB / 0.7722 GB, free: 145 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005227/1.274, allocations: 3.432 MB / 0.7755 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-05/1.274, allocations: 20.47 kB / 0.7756 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/1.274, allocations: 4 kB / 0.7756 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/1.274, allocations: 15.97 kB / 0.7756 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/1.287, allocations: 8.907 MB / 0.7843 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/1.287, allocations: 4.812 kB / 0.7843 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.289, allocations: 295.5 kB / 0.7846 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002311/1.291, allocations: 0.8477 MB / 0.7854 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/1.291, allocations: 32 kB / 0.7854 GB, free: 131.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007099/1.298, allocations: 7.533 MB / 0.7928 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.298, allocations: 3.984 kB / 0.7928 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007477/1.306, allocations: 6.048 MB / 0.7987 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/1.307, allocations: 471.6 kB / 0.7991 GB, free: 117.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/1.308, allocations: 31.95 kB / 0.7992 GB, free: 117 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/1.309, allocations: 111.9 kB / 0.7993 GB, free: 116.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/1.31, allocations: 109.8 kB / 0.7994 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/1.31, allocations: 54.33 kB / 0.7994 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004045/1.314, allocations: 3.154 MB / 0.8025 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.32e-07/1.314, allocations: 0 / 0.8025 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005355/1.319, allocations: 1.154 MB / 0.8036 GB, free: 112.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 136 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007504/1.327, allocations: 6.873 MB / 0.8104 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007157/1.334, allocations: 5.435 MB / 0.8157 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.334, allocations: 0 / 0.8157 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00221/1.336, allocations: 1.843 MB / 0.8175 GB, free: 98.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/1.338, allocations: 0.5224 MB / 0.818 GB, free: 97.71 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3248/1.663, allocations: 133.9 MB / 0.9487 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003884/1.667, allocations: 3.972 MB / 0.9526 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004998/1.672, allocations: 1.995 MB / 0.9545 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004093/1.676, allocations: 2.352 MB / 0.9568 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of SimCode: time 2.696e-06/1.676, allocations: 0 / 0.9568 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/1.806, allocations: 90.46 MB / 1.045 GB, free: 61.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/1.806, allocations: 201.1 kB / 1.045 GB, free: 61.53 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.758/6.564, allocations: 0 / 1.045 GB, free: 61.53 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Bevel1D.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Bevel1D_res.mat does not exist to compare? outputFormat=mat