Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001467/0.001467, allocations: 97.09 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 172.8 kB / 16.58 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.4 MB / 222.8 MB, free: 5.812 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.406/0.406, allocations: 43.55 MB / 314.6 MB, free: 8.652 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000541/0.0005411, allocations: 12 kB / 384 MB, free: 7.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1336, allocations: 58.86 MB / 442.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3006/0.4343, allocations: 67.76 MB / 0.4987 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03796/0.4723, allocations: 14.32 MB / 0.5127 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01994/0.4923, allocations: 329.2 kB / 0.513 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01495/0.5072, allocations: 3.527 MB / 0.5164 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03548/0.5428, allocations: 10.35 MB / 0.5265 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005954/0.5487, allocations: 0.9273 MB / 0.5274 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04671/0.5955, allocations: 35.83 MB / 0.5624 GB, free: 5.652 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01123/0.6067, allocations: 6.347 MB / 0.5686 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.6115, allocations: 1.849 MB / 0.5704 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005594/0.6172, allocations: 2.921 MB / 0.5733 GB, free: 10.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.6188, allocations: 212 kB / 0.5735 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003438/0.6222, allocations: 0.9909 MB / 0.5744 GB, free: 9.305 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003774/0.626, allocations: 2.466 MB / 0.5769 GB, free: 6.832 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002643/0.6287, allocations: 1.205 MB / 0.578 GB, free: 5.617 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.6418, allocations: 8.191 MB / 0.586 GB, free: 13.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.6418, allocations: 0 / 0.586 GB, free: 13.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6419, allocations: 0 / 0.586 GB, free: 13.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004371/0.6423, allocations: 0 / 0.586 GB, free: 13.41 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.01834/0.6606, allocations: 6.124 MB / 0.592 GB, free: 7.203 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.6607, allocations: 8.031 kB / 0.592 GB, free: 7.195 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003326/0.664, allocations: 0.9591 MB / 0.593 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1267/0.7908, allocations: 12.9 MB / 0.6056 GB, free: 9.301 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/0.8041, allocations: 5.587 MB / 0.611 GB, free: 3.633 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004532/0.8046, allocations: 328.6 kB / 0.6113 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002132/0.8067, allocations: 463.5 kB / 0.6118 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03059/0.8373, allocations: 13.43 MB / 0.6249 GB, free: 4.551 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004588/0.8378, allocations: 67.42 kB / 0.6249 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001654/0.8395, allocations: 215.8 kB / 0.6251 GB, free: 4.273 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004857/0.8444, allocations: 2.66 MB / 0.6277 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2667/1.111, allocations: 11.54 MB / 0.639 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06504/1.176, allocations: 53.69 MB / 0.6914 GB, free: 102.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01303/1.189, allocations: 5.657 MB / 0.697 GB, free: 100.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004484/1.194, allocations: 3.426 MB / 0.7003 GB, free: 99.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006203/1.194, allocations: 0.6833 MB / 0.701 GB, free: 98.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/1.195, allocations: 66.52 kB / 0.701 GB, free: 98.64 MB / 494.1 MB Notification: Performance of pre-optimization done (n=254): time 5.68e-06/1.195, allocations: 0 / 0.701 GB, free: 98.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=324): time 0.08966/1.284, allocations: 35.64 MB / 0.7358 GB, free: 67.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.252e-05/1.284, allocations: 273.3 kB / 0.7361 GB, free: 67.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007759/1.292, allocations: 5.321 MB / 0.7413 GB, free: 62.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001131/1.293, allocations: 73.7 kB / 0.7414 GB, free: 62.15 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002387/1.296, allocations: 4.048 MB / 0.7453 GB, free: 58.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00158/1.297, allocations: 1.195 MB / 0.7465 GB, free: 56.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/1.298, allocations: 159.4 kB / 0.7466 GB, free: 56.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003078/1.298, allocations: 0.6363 MB / 0.7473 GB, free: 56.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/1.302, allocations: 3.443 MB / 0.7506 GB, free: 52.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006221/1.309, allocations: 7.694 MB / 0.7581 GB, free: 42.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007544/1.316, allocations: 5.06 MB / 0.7631 GB, free: 37.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.316, allocations: 42.34 kB / 0.7631 GB, free: 37.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02486/1.341, allocations: 12.9 MB / 0.7757 GB, free: 24.83 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.587e-05/1.341, allocations: 68 kB / 0.7758 GB, free: 24.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.341, allocations: 144.9 kB / 0.7759 GB, free: 24.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004668/1.346, allocations: 2.266 MB / 0.7781 GB, free: 22.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005874/1.352, allocations: 1.766 MB / 0.7799 GB, free: 20.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/1.369, allocations: 15.27 MB / 0.7948 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006939/1.376, allocations: 467.3 kB / 0.7952 GB, free: 4.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00172/1.378, allocations: 454.7 kB / 0.7957 GB, free: 4.148 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (931): * Single equations (assignments): 926 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006387/1.384, allocations: 2.833 MB / 0.7984 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001453/1.385, allocations: 0.4937 MB / 0.7989 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01502/1.4, allocations: 7.416 MB / 0.8061 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.24e-05/1.401, allocations: 32.75 kB / 0.8062 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.549e-05/1.401, allocations: 8 kB / 0.8062 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.186e-05/1.401, allocations: 15.95 kB / 0.8062 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0363/1.437, allocations: 16.66 MB / 0.8225 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-05/1.437, allocations: 4 kB / 0.8225 GB, free: 8.523 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002686/1.44, allocations: 0.5148 MB / 0.823 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005092/1.445, allocations: 2.008 MB / 0.8249 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006597/1.446, allocations: 63.98 kB / 0.825 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.275/1.721, allocations: 13.75 MB / 0.8384 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.721, allocations: 10.97 kB / 0.8384 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01521/1.736, allocations: 11.81 MB / 0.85 GB, free: 152.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002832/1.739, allocations: 1.087 MB / 0.851 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007107/1.739, allocations: 62.86 kB / 0.8511 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.742, allocations: 216.5 kB / 0.8513 GB, free: 151.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005839/1.742, allocations: 211 kB / 0.8515 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002353/1.742, allocations: 93.86 kB / 0.8516 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004958/1.747, allocations: 3.362 MB / 0.8549 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/1.747, allocations: 1.531 kB / 0.8549 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006794/1.754, allocations: 1.521 MB / 0.8564 GB, free: 150.3 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (263): * Single equations (assignments): 258 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01841/1.773, allocations: 12.5 MB / 0.8686 GB, free: 145 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01642/1.789, allocations: 8.566 MB / 0.8769 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/1.789, allocations: 1.156 kB / 0.8769 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00801/1.797, allocations: 4.111 MB / 0.8809 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005944/1.803, allocations: 0.6733 MB / 0.8816 GB, free: 139.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1038/1.907, allocations: 56.41 MB / 0.9367 GB, free: 88.49 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006408/1.913, allocations: 4.406 MB / 0.941 GB, free: 84.04 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006912/1.92, allocations: 2.516 MB / 0.9434 GB, free: 81.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004469/1.925, allocations: 2.823 MB / 0.9462 GB, free: 78.7 MB / 0.5137 GB Notification: Performance of SimCode: time 2.444e-06/1.925, allocations: 4 kB / 0.9462 GB, free: 78.69 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4407/2.366, allocations: 121.2 MB / 1.065 GB, free: 134.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/2.366, allocations: 205.7 kB / 1.065 GB, free: 134.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.772/7.138, allocations: 0 / 1.065 GB, free: 134.5 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat