Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.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.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_WorldForces",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.001289/0.001289, allocations: 184.6 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001063/0.001063, allocations: 98.84 kB / 270.2 MB, free: 13.36 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.2097/0.2097, allocations: 43.56 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1253, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5348, allocations: 108.8 MB / 0.5851 GB, free: 7.242 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.5351, allocations: 79.94 kB / 0.5852 GB, free: 7.203 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.687/1.222, allocations: 152.6 MB / 0.7342 GB, free: 95.62 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.059e-06/1.222, allocations: 0 / 0.7342 GB, free: 95.62 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006271/1.223, allocations: 154.7 kB / 0.7343 GB, free: 95.62 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: 2705 * Number of variables: 2705 Notification: Performance of Generate backend data structure: time 0.03173/1.255, allocations: 8.026 MB / 0.7422 GB, free: 92.47 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/1.255, allocations: 10.34 kB / 0.7422 GB, free: 92.47 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008097/1.263, allocations: 1.349 MB / 0.7435 GB, free: 92.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03813/1.301, allocations: 9.623 MB / 0.7529 GB, free: 91.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02813/1.329, allocations: 9.183 MB / 0.7619 GB, free: 90.88 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007346/1.33, allocations: 0.5784 MB / 0.7624 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004707/1.335, allocations: 0.7642 MB / 0.7632 GB, free: 90.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04688/1.382, allocations: 18.19 MB / 0.7809 GB, free: 86.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006268/1.382, allocations: 102.1 kB / 0.781 GB, free: 86.36 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00319/1.385, allocations: 370.9 kB / 0.7814 GB, free: 86.36 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002589/1.388, allocations: 1.706 MB / 0.7831 GB, free: 86.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/1.419, allocations: 14.63 MB / 0.7973 GB, free: 81.63 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09748/1.516, allocations: 80.92 MB / 0.8764 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01584/1.532, allocations: 7.214 MB / 0.8834 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003591/1.533, allocations: 61.09 kB / 0.8835 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/1.533, allocations: 68.62 kB / 0.8835 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=307): time 8.085e-06/1.533, allocations: 0 / 0.8835 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of matching and sorting (n=340): time 0.4219/1.955, allocations: 31.78 MB / 0.9146 GB, free: 97.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/1.955, allocations: 296.4 kB / 0.9148 GB, free: 97.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01647/1.971, allocations: 6.607 MB / 0.9213 GB, free: 96.64 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001011/1.972, allocations: 77.45 kB / 0.9214 GB, free: 96.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00454/1.977, allocations: 5.369 MB / 0.9266 GB, free: 94.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/1.979, allocations: 1.284 MB / 0.9279 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007413/1.98, allocations: 190.3 kB / 0.928 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004751/1.98, allocations: 0.7124 MB / 0.9287 GB, free: 93.19 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005408/1.986, allocations: 3.689 MB / 0.9323 GB, free: 93.17 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008698/1.994, allocations: 9.306 MB / 0.9414 GB, free: 85.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008422/2.003, allocations: 5.735 MB / 0.947 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001904/2.003, allocations: 64.08 kB / 0.9471 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.02858/2.032, allocations: 13.93 MB / 0.9607 GB, free: 84.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005917/2.032, allocations: 97.2 kB / 0.9608 GB, free: 84.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006273/2.033, allocations: 200.4 kB / 0.961 GB, free: 84.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004027/2.037, allocations: 1.38 MB / 0.9623 GB, free: 84.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00945/2.046, allocations: 2.242 MB / 0.9645 GB, free: 83.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/2.061, allocations: 11.52 MB / 0.9758 GB, free: 76.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.071, allocations: 0.5387 MB / 0.9763 GB, free: 76.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002477/2.074, allocations: 0.5619 MB / 0.9768 GB, free: 76.47 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 902 * Number of states: 0 () * Number of discrete variables: 63 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1175): * Single equations (assignments): 1169 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01224/2.086, allocations: 3.587 MB / 0.9803 GB, free: 74.81 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003545/2.089, allocations: 0.6443 MB / 0.981 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/2.105, allocations: 6.678 MB / 0.9875 GB, free: 71.94 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-05/2.105, allocations: 37.08 kB / 0.9875 GB, free: 71.94 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-05/2.105, allocations: 11.5 kB / 0.9875 GB, free: 71.94 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.963e-05/2.106, allocations: 18.56 kB / 0.9876 GB, free: 71.94 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03787/2.143, allocations: 15.48 MB / 1.003 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-05/2.143, allocations: 7.312 kB / 1.003 GB, free: 66.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003047/2.147, allocations: 0.5798 MB / 1.003 GB, free: 66.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002719/2.149, allocations: 1.056 MB / 1.004 GB, free: 65.97 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003947/2.15, allocations: 68.98 kB / 1.004 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/2.161, allocations: 10.5 MB / 1.015 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/2.161, allocations: 8.438 kB / 1.015 GB, free: 59.34 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/2.179, allocations: 11.26 MB / 1.026 GB, free: 52.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004711/2.184, allocations: 1.218 MB / 1.027 GB, free: 50.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001935/2.186, allocations: 56.78 kB / 1.027 GB, free: 50.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003896/2.189, allocations: 204.3 kB / 1.027 GB, free: 50.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005496/2.19, allocations: 193.2 kB / 1.027 GB, free: 50.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/2.19, allocations: 91.14 kB / 1.027 GB, free: 50.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008392/2.199, allocations: 4.703 MB / 1.032 GB, free: 46.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.7e-07/2.199, allocations: 0 / 1.032 GB, free: 46.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01177/2.21, allocations: 1.794 MB / 1.034 GB, free: 44.88 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01791/2.228, allocations: 12.16 MB / 1.046 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01582/2.244, allocations: 9.269 MB / 1.055 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/2.244, allocations: 4 kB / 1.055 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00507/2.249, allocations: 3.545 MB / 1.058 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005504/2.255, allocations: 0.8219 MB / 1.059 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4898/2.745, allocations: 208.4 MB / 1.262 GB, free: 21.02 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01136/2.756, allocations: 5.617 MB / 1.268 GB, free: 20.11 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008913/2.765, allocations: 3.177 MB / 1.271 GB, free: 19.87 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00559/2.771, allocations: 3.668 MB / 1.275 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of SimCode: time 9.52e-07/2.771, allocations: 0 / 1.275 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5625/3.333, allocations: 142.3 MB / 1.414 GB, free: 161.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/3.334, allocations: 194.6 kB / 1.414 GB, free: 161.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/10.95, allocations: 3.938 kB / 1.414 GB, free: 161.6 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_WorldForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_WorldForces.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat