Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001099/0.001098, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008942/0.0008942, allocations: 90.05 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.382e-05, allocations: 0 / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5246, allocations: 103.9 MB / 498.2 MB, free: 15.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.5249, allocations: 87.95 kB / 498.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6149/1.14, allocations: 141.8 MB / 0.6251 GB, free: 79.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.14, allocations: 0 / 0.6251 GB, free: 79.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005787/1.14, allocations: 151.9 kB / 0.6253 GB, free: 79.3 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02792/1.168, allocations: 7.464 MB / 0.6326 GB, free: 71.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/1.168, allocations: 12.03 kB / 0.6326 GB, free: 71.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006143/1.175, allocations: 1.191 MB / 0.6337 GB, free: 70.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04281/1.217, allocations: 11.73 MB / 0.6452 GB, free: 58.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02484/1.242, allocations: 9.884 MB / 0.6548 GB, free: 48.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005161/1.243, allocations: 0.5215 MB / 0.6554 GB, free: 48.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003398/1.246, allocations: 0.7066 MB / 0.656 GB, free: 47.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04158/1.288, allocations: 17.25 MB / 0.6729 GB, free: 29.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005967/1.289, allocations: 99.08 kB / 0.673 GB, free: 29.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003044/1.292, allocations: 331.9 kB / 0.6733 GB, free: 28.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002009/1.294, allocations: 1.457 MB / 0.6747 GB, free: 27.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03005/1.324, allocations: 14.3 MB / 0.6887 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7643/2.088, allocations: 73.11 MB / 0.7601 GB, free: 43.17 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03785/2.126, allocations: 8.729 MB / 0.7686 GB, free: 42.49 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006509/2.132, allocations: 4.719 MB / 0.7732 GB, free: 42.45 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03034/2.163, allocations: 17.7 MB / 0.7905 GB, free: 38.48 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.311e-05/2.163, allocations: 67.41 kB / 0.7906 GB, free: 38.42 MB / 442.8 MB Notification: Performance of pre-optimization done (n=281): time 7.244e-06/2.163, allocations: 0 / 0.7906 GB, free: 38.42 MB / 442.8 MB Notification: Performance of matching and sorting (n=374): time 0.1815/2.344, allocations: 57.38 MB / 0.8466 GB, free: 14.32 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/2.345, allocations: 379.6 kB / 0.8469 GB, free: 13.88 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01207/2.357, allocations: 5.421 MB / 0.8522 GB, free: 9.07 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001395/2.358, allocations: 85.7 kB / 0.8523 GB, free: 8.98 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005106/2.363, allocations: 4.869 MB / 0.8571 GB, free: 4.617 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002922/2.366, allocations: 1.372 MB / 0.8584 GB, free: 3.371 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001653/2.368, allocations: 176 kB / 0.8586 GB, free: 3.199 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0008064/2.369, allocations: 0.6937 MB / 0.8593 GB, free: 2.5 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008358/2.377, allocations: 5.403 MB / 0.8645 GB, free: 13.09 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01263/2.39, allocations: 10.38 MB / 0.8747 GB, free: 340 kB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/2.401, allocations: 7.379 MB / 0.8819 GB, free: 9.078 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/2.402, allocations: 51.95 kB / 0.8819 GB, free: 9.027 MB / 474.8 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.3657/2.767, allocations: 21.18 MB / 0.9026 GB, free: 106.2 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002407/2.768, allocations: 79.31 kB / 0.9027 GB, free: 106.2 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005272/2.768, allocations: 174.8 kB / 0.9029 GB, free: 106.2 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02221/2.79, allocations: 6.521 MB / 0.9092 GB, free: 106.1 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008852/2.799, allocations: 2.058 MB / 0.9112 GB, free: 106.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04117/2.84, allocations: 32.32 MB / 0.9428 GB, free: 97.65 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009332/2.85, allocations: 0.6998 MB / 0.9435 GB, free: 97.51 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001988/2.852, allocations: 0.5148 MB / 0.944 GB, free: 97.44 MB / 474.8 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.001849/2.854, allocations: 0.7607 MB / 0.9447 GB, free: 97.09 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001507/2.855, allocations: 0.586 MB / 0.9453 GB, free: 97.09 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03084/2.886, allocations: 15.39 MB / 0.9603 GB, free: 91.97 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.609e-05/2.886, allocations: 51.47 kB / 0.9604 GB, free: 91.97 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.308e-05/2.886, allocations: 17.31 kB / 0.9604 GB, free: 91.97 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.156e-05/2.886, allocations: 21.98 kB / 0.9604 GB, free: 91.97 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05197/2.938, allocations: 30.38 MB / 0.9901 GB, free: 72.98 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.683e-05/2.938, allocations: 4 kB / 0.9901 GB, free: 72.97 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002971/2.941, allocations: 0.581 MB / 0.9907 GB, free: 72.54 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01767/2.959, allocations: 6.142 MB / 0.9967 GB, free: 67.59 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009701/2.96, allocations: 59.16 kB / 0.9967 GB, free: 67.54 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03725/2.997, allocations: 30.69 MB / 1.027 GB, free: 36.7 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/2.997, allocations: 4 kB / 1.027 GB, free: 36.7 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05451/3.052, allocations: 22.99 MB / 1.049 GB, free: 13.63 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/3.054, allocations: 0.5999 MB / 1.05 GB, free: 13.02 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002842/3.057, allocations: 61.25 kB / 1.05 GB, free: 12.96 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007104/3.064, allocations: 409.2 kB / 1.05 GB, free: 12.56 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001824/3.066, allocations: 250.5 kB / 1.05 GB, free: 12.32 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00101/3.067, allocations: 96.84 kB / 1.051 GB, free: 12.22 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01086/3.078, allocations: 3.845 MB / 1.054 GB, free: 8.383 MB / 474.8 MB Notification: Performance of sort global known variables: time 7.51e-07/3.078, allocations: 0 / 1.054 GB, free: 8.383 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01582/3.094, allocations: 2.17 MB / 1.056 GB, free: 6.234 MB / 474.8 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.3977/3.492, allocations: 24.23 MB / 1.08 GB, free: 120.3 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02435/3.516, allocations: 13.75 MB / 1.093 GB, free: 119.7 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.396e-05/3.516, allocations: 6.938 kB / 1.093 GB, free: 119.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009771/3.526, allocations: 6.279 MB / 1.1 GB, free: 117.6 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005181/3.531, allocations: 0.8358 MB / 1.1 GB, free: 117.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03865/3.57, allocations: 19.08 MB / 1.119 GB, free: 110.4 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005853/3.576, allocations: 5.415 MB / 1.124 GB, free: 108.6 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.007739/3.584, allocations: 3.031 MB / 1.127 GB, free: 108.6 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00474/3.588, allocations: 3.392 MB / 1.131 GB, free: 105.8 MB / 490.8 MB Notification: Performance of SimCode: time 1.503e-06/3.588, allocations: 0 / 1.131 GB, free: 105.8 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5756/4.164, allocations: 169.4 MB / 1.296 GB, free: 109 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/4.164, allocations: 198.6 kB / 1.296 GB, free: 108.8 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.907/12.07, allocations: 0 / 1.296 GB, free: 108.8 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat