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.001609/0.00161, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.191/2.191, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001635/0.001634, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.114e-05/4.132e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4616/0.5975, allocations: 102.8 MB / 472 MB, free: 6.664 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.5979, allocations: 89.39 kB / 472.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8546/1.453, allocations: 140.2 MB / 0.598 GB, free: 83.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/1.453, allocations: 3.984 kB / 0.598 GB, free: 83.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006643/1.453, allocations: 149.2 kB / 0.5981 GB, free: 83.39 MB / 410.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.03263/1.486, allocations: 7.494 MB / 0.6054 GB, free: 76.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/1.486, allocations: 15.95 kB / 0.6055 GB, free: 76.94 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005804/1.492, allocations: 1.182 MB / 0.6066 GB, free: 75.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08446/1.576, allocations: 11.74 MB / 0.6181 GB, free: 64.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0368/1.613, allocations: 10.52 MB / 0.6283 GB, free: 53.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006473/1.614, allocations: 0.5199 MB / 0.6289 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00401/1.618, allocations: 0.7052 MB / 0.6295 GB, free: 52.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05553/1.674, allocations: 17.25 MB / 0.6464 GB, free: 33.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006561/1.674, allocations: 99.08 kB / 0.6465 GB, free: 33.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00353/1.678, allocations: 334.6 kB / 0.6468 GB, free: 33.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003353/1.681, allocations: 1.454 MB / 0.6482 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04686/1.728, allocations: 14.3 MB / 0.6622 GB, free: 17.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4597/2.188, allocations: 73.31 MB / 0.7338 GB, free: 44.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04193/2.23, allocations: 8.725 MB / 0.7423 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008955/2.239, allocations: 4.727 MB / 0.7469 GB, free: 43.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04473/2.284, allocations: 17.75 MB / 0.7642 GB, free: 39.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.378e-05/2.284, allocations: 66.22 kB / 0.7643 GB, free: 39.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=281): time 7.204e-06/2.284, allocations: 0 / 0.7643 GB, free: 39.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.324/2.608, allocations: 57.58 MB / 0.8205 GB, free: 14.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/2.608, allocations: 380.6 kB / 0.8209 GB, free: 13.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01408/2.622, allocations: 5.492 MB / 0.8263 GB, free: 8.477 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001269/2.624, allocations: 85.7 kB / 0.8264 GB, free: 8.387 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004357/2.628, allocations: 4.645 MB / 0.8309 GB, free: 3.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00252/2.63, allocations: 1.367 MB / 0.8322 GB, free: 2.387 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001836/2.632, allocations: 180 kB / 0.8324 GB, free: 2.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008021/2.633, allocations: 0.6909 MB / 0.8331 GB, free: 1.508 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01461/2.648, allocations: 5.41 MB / 0.8384 GB, free: 12.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02053/2.668, allocations: 10.37 MB / 0.8485 GB, free: 15.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0193/2.688, allocations: 7.383 MB / 0.8557 GB, free: 8.082 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001723/2.688, allocations: 48 kB / 0.8557 GB, free: 8.035 MB / 458.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.4035/3.091, allocations: 20.94 MB / 0.8762 GB, free: 107.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/3.092, allocations: 79.53 kB / 0.8763 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003777/3.092, allocations: 174 kB / 0.8764 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03748/3.13, allocations: 6.525 MB / 0.8828 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01401/3.144, allocations: 2.048 MB / 0.8848 GB, free: 107.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07159/3.215, allocations: 32.33 MB / 0.9164 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01316/3.229, allocations: 0.6961 MB / 0.9171 GB, free: 97.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002429/3.231, allocations: 0.5122 MB / 0.9176 GB, free: 97.67 MB / 458.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 () * 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.003235/3.234, allocations: 0.7667 MB / 0.9183 GB, free: 97.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0019/3.236, allocations: 0.5972 MB / 0.9189 GB, free: 97.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05458/3.291, allocations: 15.39 MB / 0.9339 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00011/3.291, allocations: 45.22 kB / 0.934 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-05/3.291, allocations: 15.97 kB / 0.934 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001043/3.291, allocations: 18.89 kB / 0.934 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09135/3.383, allocations: 30.41 MB / 0.9637 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-05/3.383, allocations: 7.797 kB / 0.9637 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006093/3.389, allocations: 0.5706 MB / 0.9643 GB, free: 71.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03429/3.423, allocations: 6.148 MB / 0.9703 GB, free: 65.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001313/3.425, allocations: 63.98 kB / 0.9703 GB, free: 65.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07035/3.495, allocations: 30.69 MB / 1 GB, free: 34.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/3.495, allocations: 4 kB / 1 GB, free: 34.37 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06742/3.562, allocations: 22.99 MB / 1.023 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006602/3.569, allocations: 1.58 MB / 1.024 GB, free: 9.652 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002679/3.572, allocations: 61.64 kB / 1.024 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00876/3.581, allocations: 407.3 kB / 1.025 GB, free: 9.195 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00221/3.583, allocations: 244.6 kB / 1.025 GB, free: 8.961 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008524/3.584, allocations: 100.2 kB / 1.025 GB, free: 8.867 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.3495/3.933, allocations: 3.895 MB / 1.029 GB, free: 106.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.463e-06/3.933, allocations: 0 / 1.029 GB, free: 106.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01482/3.948, allocations: 2.172 MB / 1.031 GB, free: 106.5 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 () * 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.0744/4.023, allocations: 24.23 MB / 1.055 GB, free: 104.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03249/4.055, allocations: 13.75 MB / 1.068 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/4.055, allocations: 3.906 kB / 1.068 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0165/4.072, allocations: 6.281 MB / 1.074 GB, free: 98.84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007793/4.08, allocations: 0.843 MB / 1.075 GB, free: 98.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06048/4.14, allocations: 19.99 MB / 1.095 GB, free: 91.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/4.153, allocations: 5.442 MB / 1.1 GB, free: 89.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009246/4.162, allocations: 3.458 MB / 1.103 GB, free: 86.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.653e-06/4.162, allocations: 0 / 1.103 GB, free: 86.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.566/10.73, allocations: 242.1 MB / 1.34 GB, free: 10.13 MB / 474.7 MB (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