Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.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.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque",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.0008824/0.0008824, allocations: 96.78 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.000796/0.0007959, allocations: 166.6 kB / 16.58 MB, free: 6.062 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.45/1.45, allocations: 205.4 MB / 222.7 MB, free: 5.613 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.3899/0.3899, allocations: 43.54 MB / 314.6 MB, free: 8.824 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.0005852/0.0005852, allocations: 16 kB / 384 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1368, allocations: 58.85 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.312/0.4488, allocations: 82.19 MB / 0.5128 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04901/0.4979, allocations: 16.48 MB / 0.5288 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02196/0.5199, allocations: 388.8 kB / 0.5292 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01965/0.5396, allocations: 4.315 MB / 0.5334 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04662/0.5863, allocations: 12.55 MB / 0.5457 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006411/0.5927, allocations: 0.8661 MB / 0.5465 GB, free: 5.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.05253/0.6453, allocations: 36.19 MB / 0.5819 GB, free: 1.672 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01468/0.66, allocations: 7.443 MB / 0.5891 GB, free: 10.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005611/0.6657, allocations: 2.031 MB / 0.5911 GB, free: 8.137 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006307/0.672, allocations: 3.201 MB / 0.5943 GB, free: 4.926 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.6739, allocations: 235.9 kB / 0.5945 GB, free: 4.695 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003905/0.6778, allocations: 1.014 MB / 0.5955 GB, free: 3.68 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004488/0.6823, allocations: 2.825 MB / 0.5982 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003064/0.6854, allocations: 1.341 MB / 0.5995 GB, free: 15.49 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.6962, allocations: 8.9 MB / 0.6082 GB, free: 6.574 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.6963, allocations: 4 kB / 0.6082 GB, free: 6.57 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.6963, allocations: 3.938 kB / 0.6082 GB, free: 6.566 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004823/0.6968, allocations: 0 / 0.6082 GB, free: 6.566 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01895/0.7157, allocations: 6.738 MB / 0.6148 GB, free: 15.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.645e-05/0.7158, allocations: 12.03 kB / 0.6148 GB, free: 15.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004097/0.7199, allocations: 1.12 MB / 0.6159 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03452/0.7544, allocations: 6.414 MB / 0.6222 GB, free: 8.168 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01357/0.7681, allocations: 5.197 MB / 0.6273 GB, free: 2.891 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004623/0.7686, allocations: 381.9 kB / 0.6276 GB, free: 2.516 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002255/0.7709, allocations: 0.5074 MB / 0.6281 GB, free: 2.008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2888/1.06, allocations: 15.49 MB / 0.6433 GB, free: 138.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/1.06, allocations: 68.78 kB / 0.6433 GB, free: 138.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005757/1.061, allocations: 244.2 kB / 0.6436 GB, free: 138.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004396/1.065, allocations: 3.059 MB / 0.6465 GB, free: 137.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02532/1.09, allocations: 12.94 MB / 0.6592 GB, free: 133.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08518/1.176, allocations: 61.1 MB / 0.7188 GB, free: 87.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01361/1.189, allocations: 6.545 MB / 0.7252 GB, free: 80.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005726/1.195, allocations: 3.89 MB / 0.729 GB, free: 76.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01627/1.211, allocations: 9.241 MB / 0.7381 GB, free: 67.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.624e-05/1.211, allocations: 72.25 kB / 0.7381 GB, free: 67.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=269): time 5.33e-06/1.211, allocations: 0 / 0.7381 GB, free: 67.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=311): time 0.06951/1.281, allocations: 30.97 MB / 0.7684 GB, free: 35.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/1.281, allocations: 247.9 kB / 0.7686 GB, free: 35.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008549/1.29, allocations: 6.965 MB / 0.7754 GB, free: 28.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000906/1.291, allocations: 77.7 kB / 0.7755 GB, free: 28.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002607/1.293, allocations: 4.82 MB / 0.7802 GB, free: 23.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001393/1.295, allocations: 1.174 MB / 0.7813 GB, free: 22.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003918/1.295, allocations: 180 kB / 0.7815 GB, free: 22.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003489/1.295, allocations: 0.6903 MB / 0.7822 GB, free: 21.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004653/1.3, allocations: 3.672 MB / 0.7858 GB, free: 18.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007299/1.307, allocations: 8.968 MB / 0.7945 GB, free: 6.457 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008224/1.316, allocations: 5.604 MB / 0.8 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001662/1.316, allocations: 56 kB / 0.8001 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03121/1.347, allocations: 13.94 MB / 0.8137 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003095/1.347, allocations: 87.94 kB / 0.8137 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004219/1.348, allocations: 184 kB / 0.8139 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004838/1.353, allocations: 1.812 MB / 0.8157 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2844/1.637, allocations: 2.107 MB / 0.8177 GB, free: 136.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/1.651, allocations: 12.01 MB / 0.8295 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007241/1.658, allocations: 0.5191 MB / 0.83 GB, free: 134 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001362/1.659, allocations: 0.5391 MB / 0.8305 GB, free: 134 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1102): * Single equations (assignments): 1095 * Array equations: 5 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00537/1.665, allocations: 3.236 MB / 0.8337 GB, free: 132.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.666, allocations: 0.591 MB / 0.8343 GB, free: 132.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.676, allocations: 6.961 MB / 0.841 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.963e-05/1.676, allocations: 33.72 kB / 0.8411 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/1.676, allocations: 8.75 kB / 0.8411 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-05/1.676, allocations: 15.19 kB / 0.8411 GB, free: 130.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02815/1.704, allocations: 15.51 MB / 0.8562 GB, free: 124.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.913e-05/1.705, allocations: 7.734 kB / 0.8563 GB, free: 124.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002687/1.707, allocations: 0.5168 MB / 0.8568 GB, free: 124.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004292/1.712, allocations: 1.528 MB / 0.8583 GB, free: 124.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000472/1.712, allocations: 59.3 kB / 0.8583 GB, free: 124.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01643/1.728, allocations: 11.15 MB / 0.8692 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.728, allocations: 7.438 kB / 0.8692 GB, free: 118.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01727/1.746, allocations: 11.3 MB / 0.8802 GB, free: 114.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003634/1.749, allocations: 1.177 MB / 0.8814 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/1.751, allocations: 59.98 kB / 0.8814 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003066/1.754, allocations: 203.5 kB / 0.8816 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005366/1.755, allocations: 191.5 kB / 0.8818 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002187/1.755, allocations: 86.94 kB / 0.8819 GB, free: 113.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.009689/1.765, allocations: 4.46 MB / 0.8863 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.553e-06/1.765, allocations: 0 / 0.8863 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01142/1.776, allocations: 1.665 MB / 0.8879 GB, free: 110 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01824/1.794, allocations: 11.99 MB / 0.8996 GB, free: 98.88 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01384/1.808, allocations: 8.987 MB / 0.9084 GB, free: 89.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.808, allocations: 3.938 kB / 0.9084 GB, free: 89.95 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005623/1.814, allocations: 3.478 MB / 0.9118 GB, free: 86.45 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007188/1.821, allocations: 0.7561 MB / 0.9125 GB, free: 85.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1156/1.937, allocations: 67.14 MB / 0.9781 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007662/1.945, allocations: 4.898 MB / 0.9829 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007358/1.952, allocations: 2.97 MB / 0.9858 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004361/1.956, allocations: 3.209 MB / 0.9889 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of SimCode: time 1.212e-06/1.956, allocations: 0 / 0.9889 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.518/2.474, allocations: 133.3 MB / 1.119 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/2.475, allocations: 208.2 kB / 1.119 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.844/7.319, allocations: 0 / 1.119 GB, free: 103.8 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat