Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001513/0.001513, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.949/1.949, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001155/0.001155, allocations: 97.98 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.000386, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3345, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1722/0.5068, allocations: 102.9 MB / 477.5 MB, free: 9.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.5072, allocations: 91.95 kB / 477.6 MB, free: 9.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8145/1.322, allocations: 140.1 MB / 0.6033 GB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.367e-06/1.322, allocations: 0 / 0.6033 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006247/1.322, allocations: 148 kB / 0.6034 GB, free: 11.38 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03535/1.358, allocations: 8.265 MB / 0.6115 GB, free: 3.027 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/1.358, allocations: 8.031 kB / 0.6115 GB, free: 3.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005792/1.364, allocations: 1.186 MB / 0.6127 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08745/1.451, allocations: 11.72 MB / 0.6241 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04062/1.492, allocations: 10.58 MB / 0.6344 GB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007997/1.493, allocations: 0.5176 MB / 0.635 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004104/1.497, allocations: 0.7066 MB / 0.6356 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3653/1.862, allocations: 17.38 MB / 0.6526 GB, free: 59.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005654/1.863, allocations: 97.67 kB / 0.6527 GB, free: 59.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003081/1.866, allocations: 332.5 kB / 0.653 GB, free: 59.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003347/1.869, allocations: 1.459 MB / 0.6544 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04642/1.916, allocations: 14.5 MB / 0.6686 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/2.034, allocations: 73.29 MB / 0.7402 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04089/2.075, allocations: 8.779 MB / 0.7488 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04178/2.117, allocations: 17.74 MB / 0.7661 GB, free: 2.199 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.601e-05/2.117, allocations: 56.56 kB / 0.7661 GB, free: 2.137 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 7.465e-06/2.117, allocations: 3.062 kB / 0.7661 GB, free: 2.137 MB / 410.7 MB Notification: Performance of matching and sorting (n=374): time 0.7665/2.883, allocations: 70.33 MB / 0.8348 GB, free: 90.53 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/2.883, allocations: 375.4 kB / 0.8352 GB, free: 90.12 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01545/2.899, allocations: 5.555 MB / 0.8406 GB, free: 89.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001271/2.9, allocations: 82.48 kB / 0.8407 GB, free: 89.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005552/2.906, allocations: 4.648 MB / 0.8452 GB, free: 87.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002515/2.908, allocations: 1.372 MB / 0.8466 GB, free: 86.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001778/2.91, allocations: 175.5 kB / 0.8467 GB, free: 86.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006698/2.911, allocations: 0.6889 MB / 0.8474 GB, free: 86.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/2.925, allocations: 5.493 MB / 0.8528 GB, free: 86.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02473/2.95, allocations: 10.46 MB / 0.863 GB, free: 79.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0223/2.972, allocations: 7.408 MB / 0.8702 GB, free: 76.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001902/2.973, allocations: 53.33 kB / 0.8703 GB, free: 76.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.06949/3.042, allocations: 21.12 MB / 0.8909 GB, free: 69.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/3.042, allocations: 77.91 kB / 0.891 GB, free: 69.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002491/3.043, allocations: 173.2 kB / 0.8911 GB, free: 69.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03581/3.078, allocations: 6.519 MB / 0.8975 GB, free: 65.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0138/3.092, allocations: 2.049 MB / 0.8995 GB, free: 63.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08434/3.177, allocations: 33.57 MB / 0.9323 GB, free: 35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01857/3.195, allocations: 0.688 MB / 0.933 GB, free: 34.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003104/3.199, allocations: 0.5175 MB / 0.9335 GB, free: 33.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],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],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * Array equations: 4 * 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: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.01417/3.213, allocations: 3.442 MB / 0.9368 GB, free: 30.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002836/3.216, allocations: 0.5862 MB / 0.9374 GB, free: 30.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06836/3.284, allocations: 15.48 MB / 0.9525 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001426/3.284, allocations: 51.98 kB / 0.9526 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.787e-05/3.284, allocations: 16 kB / 0.9526 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001098/3.284, allocations: 23.88 kB / 0.9526 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4176/3.702, allocations: 30.49 MB / 0.9824 GB, free: 95.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.502e-05/3.702, allocations: 3.219 kB / 0.9824 GB, free: 95.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005854/3.708, allocations: 0.5733 MB / 0.9829 GB, free: 95.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03498/3.743, allocations: 6.158 MB / 0.989 GB, free: 95.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/3.744, allocations: 61.97 kB / 0.989 GB, free: 95.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07205/3.816, allocations: 31.92 MB / 1.02 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/3.816, allocations: 9.953 kB / 1.02 GB, free: 88.72 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06718/3.884, allocations: 23.14 MB / 1.043 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005683/3.889, allocations: 1.575 MB / 1.044 GB, free: 79.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002359/3.892, allocations: 64.38 kB / 1.044 GB, free: 79.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008247/3.9, allocations: 406.3 kB / 1.045 GB, free: 79.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002049/3.902, allocations: 249.5 kB / 1.045 GB, free: 79.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006223/3.903, allocations: 94.48 kB / 1.045 GB, free: 79.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0104/3.913, allocations: 3.953 MB / 1.049 GB, free: 78.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.62e-07/3.913, allocations: 3.969 kB / 1.049 GB, free: 78.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01282/3.926, allocations: 2.175 MB / 1.051 GB, free: 76.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (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 (243): * Single equations (assignments): 236 * Array equations: 4 * 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: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.06765/3.994, allocations: 24.38 MB / 1.075 GB, free: 56.72 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03212/4.026, allocations: 13.92 MB / 1.088 GB, free: 44.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/4.026, allocations: 2.297 kB / 1.088 GB, free: 44.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01805/4.044, allocations: 6.352 MB / 1.095 GB, free: 39.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007694/4.052, allocations: 0.8398 MB / 1.096 GB, free: 38.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5642/4.616, allocations: 199.4 MB / 1.29 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/4.629, allocations: 5.441 MB / 1.296 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009255/4.638, allocations: 3.463 MB / 1.299 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/4.638, allocations: 0 / 1.299 GB, free: 9.977 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.579/11.22, allocations: 241.8 MB / 1.535 GB, free: 128 MB / 0.4948 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat