Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2",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.001128/0.001128, allocations: 96.98 kB / 15.69 MB, free: 480 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.001459/0.001459, allocations: 176 kB / 16.57 MB, free: 6.387 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.64/1.64, allocations: 205.4 MB / 222.7 MB, free: 5.668 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.5023/0.5023, allocations: 43.55 MB / 314.5 MB, free: 9.031 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.0006042/0.0006039, allocations: 18.97 kB / 384 MB, free: 8.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1673, allocations: 58.85 MB / 442.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.4086/0.576, allocations: 107.8 MB / 0.5377 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.07571/0.6518, allocations: 23.73 MB / 0.5609 GB, free: 5.648 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03901/0.6909, allocations: 0.5261 MB / 0.5614 GB, free: 5.121 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02787/0.7188, allocations: 5.452 MB / 0.5667 GB, free: 1.082 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0669/0.7858, allocations: 15.28 MB / 0.5816 GB, free: 1.766 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01044/0.7962, allocations: 1.225 MB / 0.5828 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.4372/1.233, allocations: 52.53 MB / 0.6341 GB, free: 50.31 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0137/1.247, allocations: 9.981 MB / 0.6439 GB, free: 49.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005134/1.252, allocations: 2.155 MB / 0.646 GB, free: 49.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00723/1.26, allocations: 3.001 MB / 0.6489 GB, free: 49.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003395/1.263, allocations: 311.6 kB / 0.6492 GB, free: 49.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007254/1.27, allocations: 1.151 MB / 0.6503 GB, free: 49.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00769/1.278, allocations: 3.473 MB / 0.6537 GB, free: 49.54 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005151/1.283, allocations: 1.73 MB / 0.6554 GB, free: 49.51 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01773/1.301, allocations: 11.88 MB / 0.667 GB, free: 45.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/1.301, allocations: 0 / 0.667 GB, free: 45.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.777e-06/1.301, allocations: 4 kB / 0.667 GB, free: 45.9 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001017/1.302, allocations: 0 / 0.667 GB, free: 45.9 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.02569/1.328, allocations: 8.873 MB / 0.6757 GB, free: 40.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.328, allocations: 8.25 kB / 0.6757 GB, free: 40.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006357/1.334, allocations: 1.391 MB / 0.6771 GB, free: 40.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08111/1.415, allocations: 14.29 MB / 0.691 GB, free: 31.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01727/1.433, allocations: 7.169 MB / 0.698 GB, free: 26.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004538/1.433, allocations: 499.7 kB / 0.6985 GB, free: 25.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003354/1.437, allocations: 0.668 MB / 0.6991 GB, free: 25.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04202/1.479, allocations: 19.84 MB / 0.7185 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004035/1.479, allocations: 83.88 kB / 0.7186 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002048/1.481, allocations: 316.7 kB / 0.7189 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006068/1.487, allocations: 3.605 MB / 0.7224 GB, free: 6.996 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03645/1.524, allocations: 16.45 MB / 0.7385 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1085/1.632, allocations: 72.46 MB / 0.8093 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02101/1.653, allocations: 8.289 MB / 0.8173 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009973/1.654, allocations: 0.6686 MB / 0.818 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.117e-05/1.654, allocations: 68.31 kB / 0.8181 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=311): time 6.101e-06/1.655, allocations: 0 / 0.8181 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of matching and sorting (n=335): time 0.4025/2.057, allocations: 32.4 MB / 0.8497 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/2.057, allocations: 295 kB / 0.85 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01714/2.074, allocations: 8.312 MB / 0.8581 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001103/2.076, allocations: 73.98 kB / 0.8582 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00531/2.081, allocations: 5.85 MB / 0.8639 GB, free: 210.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002168/2.083, allocations: 1.264 MB / 0.8651 GB, free: 209.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009899/2.084, allocations: 194.5 kB / 0.8653 GB, free: 209.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0005031/2.085, allocations: 0.7074 MB / 0.866 GB, free: 209.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006106/2.091, allocations: 3.649 MB / 0.8696 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/2.101, allocations: 9.291 MB / 0.8786 GB, free: 199.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/2.113, allocations: 5.677 MB / 0.8842 GB, free: 197 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003554/2.113, allocations: 57.06 kB / 0.8842 GB, free: 197 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1254) (initialization): time 0.03827/2.151, allocations: 13.76 MB / 0.8977 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/2.152, allocations: 92.3 kB / 0.8978 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004172/2.152, allocations: 199.5 kB / 0.8979 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003958/2.156, allocations: 1.342 MB / 0.8993 GB, free: 191.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009927/2.166, allocations: 2.24 MB / 0.9014 GB, free: 191.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01636/2.182, allocations: 12.93 MB / 0.9141 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01365/2.196, allocations: 0.5382 MB / 0.9146 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00314/2.199, allocations: 0.565 MB / 0.9152 GB, free: 182.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1174): * Single equations (assignments): 1167 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01145/2.211, allocations: 3.887 MB / 0.9189 GB, free: 180.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002164/2.213, allocations: 0.6837 MB / 0.9196 GB, free: 180.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01118/2.224, allocations: 6.497 MB / 0.926 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-05/2.224, allocations: 33 kB / 0.926 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.138e-05/2.224, allocations: 12 kB / 0.926 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.35e-05/2.224, allocations: 15.84 kB / 0.926 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03471/2.259, allocations: 15.93 MB / 0.9416 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/2.259, allocations: 4 kB / 0.9416 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/2.262, allocations: 0.5583 MB / 0.9421 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/2.265, allocations: 0.996 MB / 0.9431 GB, free: 165 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004614/2.266, allocations: 56 kB / 0.9431 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/2.276, allocations: 11.8 MB / 0.9547 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/2.276, allocations: 0 / 0.9547 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/2.291, allocations: 10.84 MB / 0.9653 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006242/2.298, allocations: 1.257 MB / 0.9665 GB, free: 142.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002409/2.3, allocations: 62.45 kB / 0.9665 GB, free: 142.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004147/2.304, allocations: 211.7 kB / 0.9667 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005224/2.305, allocations: 191.2 kB / 0.9669 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002287/2.305, allocations: 83.98 kB / 0.967 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.008711/2.314, allocations: 5.379 MB / 0.9723 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.31e-07/2.314, allocations: 0 / 0.9723 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0134/2.327, allocations: 1.924 MB / 0.9741 GB, free: 134.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0164/2.344, allocations: 11.83 MB / 0.9857 GB, free: 122.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01514/2.359, allocations: 9.227 MB / 0.9947 GB, free: 113.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/2.359, allocations: 0 / 0.9947 GB, free: 113.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004971/2.364, allocations: 3.386 MB / 0.998 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006499/2.37, allocations: 0.9308 MB / 0.9989 GB, free: 109 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4747/2.845, allocations: 214.8 MB / 1.209 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01724/2.862, allocations: 6.128 MB / 1.215 GB, free: 117.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.01389/2.876, allocations: 3.101 MB / 1.218 GB, free: 117.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01026/2.887, allocations: 4.067 MB / 1.222 GB, free: 114.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.703e-06/2.887, allocations: 0 / 1.222 GB, free: 114.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5427/3.429, allocations: 153.7 MB / 1.372 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/3.43, allocations: 194.2 kB / 1.372 GB, free: 189.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.519/9.949, allocations: 0 / 1.372 GB, free: 189.8 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat