Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002286/0.002291, allocations: 180.9 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2872/0.2872, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.657e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5313/0.6492, allocations: 107.5 MB / 0.5779 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.6495, allocations: 78.81 kB / 0.578 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9468/1.596, allocations: 132.6 MB / 0.7075 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.655e-06/1.596, allocations: 1.031 kB / 0.7075 GB, free: 94.33 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005152/1.597, allocations: 131 kB / 0.7076 GB, free: 94.33 MB / 0.4948 GB 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.0308/1.628, allocations: 6.663 MB / 0.7141 GB, free: 93.47 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/1.628, allocations: 13.69 kB / 0.7141 GB, free: 93.47 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006346/1.634, allocations: 1.195 MB / 0.7153 GB, free: 93.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05579/1.69, allocations: 7.143 MB / 0.7223 GB, free: 92.91 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02871/1.719, allocations: 7.45 MB / 0.7296 GB, free: 92.16 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007911/1.72, allocations: 0.4986 MB / 0.7301 GB, free: 92.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004002/1.724, allocations: 0.6638 MB / 0.7307 GB, free: 92.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04973/1.773, allocations: 16.09 MB / 0.7464 GB, free: 88.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005435/1.774, allocations: 93.27 kB / 0.7465 GB, free: 88.13 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003304/1.777, allocations: 322.9 kB / 0.7468 GB, free: 88.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003451/1.781, allocations: 1.562 MB / 0.7483 GB, free: 88.11 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04011/1.821, allocations: 12.95 MB / 0.761 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1136/1.935, allocations: 73.08 MB / 0.8323 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02582/1.96, allocations: 6.462 MB / 0.8387 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007101/1.968, allocations: 3.683 MB / 0.8422 GB, free: 30.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02305/1.991, allocations: 9.275 MB / 0.8513 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/1.991, allocations: 68.28 kB / 0.8514 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=269): time 7.695e-06/1.991, allocations: 0 / 0.8514 GB, free: 22.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.1362/2.127, allocations: 25.9 MB / 0.8767 GB, free: 0.6797 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/2.127, allocations: 243.9 kB / 0.8769 GB, free: 400 kB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01852/2.146, allocations: 6.168 MB / 0.8829 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009581/2.147, allocations: 73.7 kB / 0.883 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005636/2.153, allocations: 4.598 MB / 0.8875 GB, free: 6.859 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002412/2.155, allocations: 1.181 MB / 0.8886 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001528/2.157, allocations: 180 kB / 0.8888 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001002/2.158, allocations: 0.6934 MB / 0.8895 GB, free: 5.051 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01065/2.168, allocations: 3.496 MB / 0.8929 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3943/2.563, allocations: 9.151 MB / 0.9018 GB, free: 99.31 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/2.578, allocations: 5.484 MB / 0.9072 GB, free: 99.28 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003697/2.578, allocations: 53.81 kB / 0.9072 GB, free: 99.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1179) (initialization): time 0.04204/2.62, allocations: 13.3 MB / 0.9202 GB, free: 98.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002118/2.62, allocations: 84.28 kB / 0.9203 GB, free: 98.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002836/2.621, allocations: 191.3 kB / 0.9205 GB, free: 98.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007398/2.628, allocations: 1.701 MB / 0.9221 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01433/2.643, allocations: 2.145 MB / 0.9242 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/2.664, allocations: 11.33 MB / 0.9353 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/2.676, allocations: 0.5353 MB / 0.9358 GB, free: 95.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00253/2.679, allocations: 0.5415 MB / 0.9364 GB, free: 95.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 853 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1107): * Single equations (assignments): 1102 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004082/2.683, allocations: 0.8003 MB / 0.9371 GB, free: 95.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/2.685, allocations: 0.591 MB / 0.9377 GB, free: 95.51 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/2.706, allocations: 6.692 MB / 0.9443 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.742e-05/2.706, allocations: 35.61 kB / 0.9443 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.391e-05/2.706, allocations: 7.281 kB / 0.9443 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/2.706, allocations: 15.75 kB / 0.9443 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04651/2.753, allocations: 15.13 MB / 0.9591 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.175e-05/2.753, allocations: 7.656 kB / 0.9591 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005927/2.759, allocations: 0.5635 MB / 0.9596 GB, free: 92.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006629/2.765, allocations: 1.421 MB / 0.961 GB, free: 91.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009258/2.766, allocations: 54.25 kB / 0.9611 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02088/2.787, allocations: 10.49 MB / 0.9713 GB, free: 86.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/2.787, allocations: 7.344 kB / 0.9713 GB, free: 86.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0276/2.815, allocations: 11.75 MB / 0.9828 GB, free: 81.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004888/2.82, allocations: 1.158 MB / 0.9839 GB, free: 80.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002216/2.822, allocations: 54.69 kB / 0.984 GB, free: 80.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006215/2.828, allocations: 216.7 kB / 0.9842 GB, free: 80.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/2.83, allocations: 191.2 kB / 0.9844 GB, free: 80.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003686/2.83, allocations: 84.73 kB / 0.9845 GB, free: 80.31 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01162/2.842, allocations: 4.363 MB / 0.9887 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.62e-07/2.842, allocations: 0 / 0.9887 GB, free: 78.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01167/2.853, allocations: 1.658 MB / 0.9903 GB, free: 78.63 MB / 0.5105 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 () * 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.02865/2.882, allocations: 13.11 MB / 1.003 GB, free: 68.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02038/2.903, allocations: 8.708 MB / 1.012 GB, free: 60.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.903, allocations: 0 / 1.012 GB, free: 60.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008956/2.912, allocations: 3.337 MB / 1.015 GB, free: 57.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006356/2.918, allocations: 0.7091 MB / 1.016 GB, free: 57.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05147/2.97, allocations: 16.19 MB / 1.031 GB, free: 43.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0113/2.981, allocations: 5.048 MB / 1.036 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008298/2.989, allocations: 3.296 MB / 1.04 GB, free: 36.52 MB / 0.5105 GB Notification: Performance of SimCode: time 1.292e-06/2.989, allocations: 0 / 1.04 GB, free: 36.52 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.929/8.918, allocations: 189.7 MB / 1.225 GB, free: 39.25 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat