Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2",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.001444/0.001449, allocations: 178.8 kB / 8.363 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 94.97 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2938/0.2938, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.843e-05, allocations: 4.219 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3943, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1999/0.5943, allocations: 110.8 MB / 0.5742 GB, free: 4.355 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.5946, allocations: 71.97 kB / 0.5743 GB, free: 4.285 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.246/1.841, allocations: 235.4 MB / 0.8041 GB, free: 2.395 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.415e-06/1.841, allocations: 0 / 0.8041 GB, free: 2.395 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0008749/1.842, allocations: 263.9 kB / 0.8044 GB, free: 2.137 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05694/1.898, allocations: 12.35 MB / 0.8165 GB, free: 5.68 MB / 491.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/1.899, allocations: 8.031 kB / 0.8165 GB, free: 5.672 MB / 491.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5892/2.488, allocations: 12.82 MB / 0.829 GB, free: 45.55 MB / 491.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05393/2.542, allocations: 13.28 MB / 0.842 GB, free: 44.95 MB / 491.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/2.543, allocations: 420.7 kB / 0.8424 GB, free: 44.95 MB / 491.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007187/2.55, allocations: 0.7581 MB / 0.8431 GB, free: 44.94 MB / 491.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04568/2.596, allocations: 17.54 MB / 0.8602 GB, free: 44.88 MB / 491.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0729/2.669, allocations: 26.04 MB / 0.8857 GB, free: 38.86 MB / 491.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009887/2.67, allocations: 149.4 kB / 0.8858 GB, free: 38.85 MB / 491.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006124/2.676, allocations: 66.84 kB / 0.8859 GB, free: 38.85 MB / 491.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00641/2.682, allocations: 2.869 MB / 0.8887 GB, free: 38.82 MB / 491.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2276/2.91, allocations: 122.2 MB / 1.008 GB, free: 13.64 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02385/2.934, allocations: 10.77 MB / 1.018 GB, free: 3.699 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4343/3.368, allocations: 8.007 MB / 1.026 GB, free: 103.1 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002329/3.371, allocations: 1.093 MB / 1.027 GB, free: 102.3 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.317e-05/3.371, allocations: 97.83 kB / 1.027 GB, free: 102.2 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=548): time 9.889e-06/3.371, allocations: 0 / 1.027 GB, free: 102.2 MB / 0.5421 GB Notification: Performance of matching and sorting (n=636): time 0.2161/3.587, allocations: 61.5 MB / 1.088 GB, free: 90.16 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/3.587, allocations: 381 kB / 1.088 GB, free: 89.78 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02231/3.61, allocations: 8.042 MB / 1.096 GB, free: 89.12 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.002015/3.612, allocations: 30.39 kB / 1.096 GB, free: 89.09 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.007555/3.619, allocations: 8.399 MB / 1.104 GB, free: 84.33 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.004521/3.624, allocations: 2.273 MB / 1.106 GB, free: 82.95 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003228/3.627, allocations: 0 / 1.106 GB, free: 82.95 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.001645/3.629, allocations: 0.9862 MB / 1.107 GB, free: 82.61 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01671/3.645, allocations: 6.449 MB / 1.113 GB, free: 82.57 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0227/3.668, allocations: 15.13 MB / 1.128 GB, free: 69.06 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02188/3.69, allocations: 9.744 MB / 1.138 GB, free: 65.95 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004609/3.691, allocations: 87.34 kB / 1.138 GB, free: 65.95 MB / 0.5421 GB Notification: Performance of matching and sorting (n=2084) (initialization): time 0.06273/3.753, allocations: 22.5 MB / 1.16 GB, free: 54.74 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002202/3.754, allocations: 136 kB / 1.16 GB, free: 54.61 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004787/3.754, allocations: 308 kB / 1.16 GB, free: 54.3 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01375/3.768, allocations: 3.323 MB / 1.163 GB, free: 51.83 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02594/3.794, allocations: 3.88 MB / 1.167 GB, free: 48.56 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04182/3.836, allocations: 21.39 MB / 1.188 GB, free: 29.49 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01967/3.856, allocations: 0.6431 MB / 1.189 GB, free: 29.01 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004649/3.86, allocations: 0.9203 MB / 1.19 GB, free: 28.13 MB / 0.5421 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1400 * Number of states: 0 () * Number of discrete variables: 120 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1964): * Single equations (assignments): 1957 * 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 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007401/3.868, allocations: 0.9117 MB / 1.191 GB, free: 27.22 MB / 0.5421 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0438/3.912, allocations: 13.17 MB / 1.203 GB, free: 16.24 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004191/3.916, allocations: 0.9063 MB / 1.204 GB, free: 15.32 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04287/3.959, allocations: 13.79 MB / 1.218 GB, free: 4.238 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001663/3.959, allocations: 68.86 kB / 1.218 GB, free: 4.172 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.053e-05/3.959, allocations: 16 kB / 1.218 GB, free: 4.156 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000207/3.959, allocations: 30.42 kB / 1.218 GB, free: 4.156 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5327/4.492, allocations: 28.84 MB / 1.246 GB, free: 81.95 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000105/4.492, allocations: 6.781 kB / 1.246 GB, free: 81.95 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01288/4.505, allocations: 1.226 MB / 1.247 GB, free: 81.95 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0134/4.518, allocations: 2.809 MB / 1.25 GB, free: 81.91 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002235/4.521, allocations: 31.88 kB / 1.25 GB, free: 81.91 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04093/4.562, allocations: 19.79 MB / 1.269 GB, free: 76.8 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.626e-05/4.562, allocations: 10.97 kB / 1.269 GB, free: 76.8 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05894/4.621, allocations: 23.37 MB / 1.292 GB, free: 73.77 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009379/4.63, allocations: 1.924 MB / 1.294 GB, free: 73.67 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004936/4.635, allocations: 17.67 kB / 1.294 GB, free: 73.67 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01171/4.647, allocations: 346.3 kB / 1.294 GB, free: 73.67 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003115/4.65, allocations: 397.3 kB / 1.295 GB, free: 73.66 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00251/4.653, allocations: 167.5 kB / 1.295 GB, free: 73.66 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01643/4.669, allocations: 5.439 MB / 1.3 GB, free: 71.95 MB / 0.5421 GB Notification: Performance of sort global known variables: time 8.31e-07/4.669, allocations: 0 / 1.3 GB, free: 71.95 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.02323/4.693, allocations: 2.677 MB / 1.303 GB, free: 71.95 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (547): * Single equations (assignments): 540 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.06169/4.754, allocations: 24.88 MB / 1.327 GB, free: 60.73 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.04157/4.796, allocations: 16.39 MB / 1.343 GB, free: 55.44 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.802e-05/4.796, allocations: 1.641 kB / 1.343 GB, free: 55.44 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01974/4.816, allocations: 6.832 MB / 1.35 GB, free: 50.76 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/4.827, allocations: 0.9663 MB / 1.351 GB, free: 49.96 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1076/4.935, allocations: 30.21 MB / 1.38 GB, free: 24.3 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02518/4.96, allocations: 8.914 MB / 1.389 GB, free: 17.92 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01975/4.98, allocations: 6.521 MB / 1.395 GB, free: 11.85 MB / 0.5421 GB Notification: Performance of SimCode: time 1.443e-06/4.98, allocations: 0 / 1.395 GB, free: 11.85 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.215/13.2, allocations: 439.2 MB / 1.824 GB, free: 43.11 MB / 0.6046 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat