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.001127/0.001127, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.001235/0.001235, allocations: 91.61 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.112e-05/1.116e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1294, allocations: 50.41 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5591, allocations: 103.2 MB / 490.8 MB, free: 7.504 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.5594, allocations: 91.94 kB / 490.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6824/1.242, allocations: 138.7 MB / 0.6148 GB, free: 87.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.827e-06/1.242, allocations: 0 / 0.6148 GB, free: 87.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007771/1.243, allocations: 146.7 kB / 0.615 GB, free: 87.84 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.03188/1.275, allocations: 7.482 MB / 0.6223 GB, free: 83.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.275, allocations: 11.19 kB / 0.6223 GB, free: 83.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04562/1.32, allocations: 11.73 MB / 0.6337 GB, free: 71.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/1.346, allocations: 9.871 MB / 0.6434 GB, free: 61.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004996/1.347, allocations: 228 kB / 0.6436 GB, free: 61.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004181/1.351, allocations: 435.7 kB / 0.644 GB, free: 61.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01975/1.371, allocations: 9.848 MB / 0.6536 GB, free: 51.19 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03276/1.404, allocations: 14.62 MB / 0.6679 GB, free: 35.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009292/1.405, allocations: 103.1 kB / 0.668 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004923/1.41, allocations: 36 kB / 0.668 GB, free: 35.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/1.412, allocations: 1.468 MB / 0.6695 GB, free: 33.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.468/1.88, allocations: 71.24 MB / 0.739 GB, free: 58.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008507/1.889, allocations: 6.017 MB / 0.7449 GB, free: 57.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006687/1.895, allocations: 4.615 MB / 0.7494 GB, free: 57.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/1.897, allocations: 0.8655 MB / 0.7503 GB, free: 56.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/1.897, allocations: 65.8 kB / 0.7503 GB, free: 56.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=292): time 5.34e-06/1.897, allocations: 0 / 0.7503 GB, free: 56.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=385): time 0.126/2.023, allocations: 53.2 MB / 0.8023 GB, free: 42.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/2.023, allocations: 376.7 kB / 0.8026 GB, free: 42.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008804/2.032, allocations: 4.794 MB / 0.8073 GB, free: 38.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001203/2.033, allocations: 29.7 kB / 0.8074 GB, free: 38.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003555/2.037, allocations: 4.895 MB / 0.8121 GB, free: 33.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002445/2.039, allocations: 1.364 MB / 0.8135 GB, free: 32.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000868/2.04, allocations: 0 / 0.8135 GB, free: 32.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000562/2.04, allocations: 0.7011 MB / 0.8142 GB, free: 31.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006493/2.047, allocations: 5.328 MB / 0.8194 GB, free: 27.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01008/2.057, allocations: 10.37 MB / 0.8295 GB, free: 15.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/2.068, allocations: 7.307 MB / 0.8366 GB, free: 9.023 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002846/2.068, allocations: 54.16 kB / 0.8367 GB, free: 8.973 MB / 442.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.0574/2.125, allocations: 21.03 MB / 0.8572 GB, free: 10.63 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003055/2.126, allocations: 84 kB / 0.8573 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004525/2.126, allocations: 176 kB / 0.8575 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02251/2.149, allocations: 6.513 MB / 0.8638 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008741/2.157, allocations: 2.102 MB / 0.8659 GB, free: 2.832 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04821/2.206, allocations: 30.5 MB / 0.8957 GB, free: 3.988 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009942/2.216, allocations: 0.53 MB / 0.8962 GB, free: 3.457 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002547/2.218, allocations: 0.5234 MB / 0.8967 GB, free: 2.934 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * 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 (1053): * Single equations (assignments): 1046 * 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%) 69,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.003034/2.221, allocations: 0.548 MB / 0.8972 GB, free: 2.375 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3834/2.605, allocations: 14.78 MB / 0.9116 GB, free: 128.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002696/2.608, allocations: 0.5547 MB / 0.9122 GB, free: 128.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03463/2.642, allocations: 15.18 MB / 0.927 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002106/2.642, allocations: 51.39 kB / 0.9271 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.147e-05/2.643, allocations: 27.19 kB / 0.9271 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000144/2.643, allocations: 21 kB / 0.9271 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05839/2.701, allocations: 29.39 MB / 0.9558 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.995e-05/2.701, allocations: 3.656 kB / 0.9558 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003392/2.705, allocations: 0.5925 MB / 0.9564 GB, free: 118.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01871/2.723, allocations: 6.111 MB / 0.9624 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/2.725, allocations: 17.08 kB / 0.9624 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03771/2.762, allocations: 28.58 MB / 0.9903 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.317e-06/2.762, allocations: 5.594 kB / 0.9903 GB, free: 101.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03689/2.799, allocations: 22.92 MB / 1.013 GB, free: 81.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/2.801, allocations: 0.5625 MB / 1.013 GB, free: 80.61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002044/2.803, allocations: 11.95 kB / 1.013 GB, free: 80.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004883/2.808, allocations: 353.2 kB / 1.014 GB, free: 80.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001321/2.81, allocations: 253.9 kB / 1.014 GB, free: 80.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004486/2.81, allocations: 96 kB / 1.014 GB, free: 79.91 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005684/2.816, allocations: 3.285 MB / 1.017 GB, free: 76.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.816, allocations: 0 / 1.017 GB, free: 76.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0115/2.827, allocations: 1.925 MB / 1.019 GB, free: 74.72 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (254): * Single equations (assignments): 247 * 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.03794/2.865, allocations: 24.27 MB / 1.043 GB, free: 50.46 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02129/2.887, allocations: 13.42 MB / 1.056 GB, free: 37.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/2.887, allocations: 0 / 1.056 GB, free: 37.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009811/2.897, allocations: 6.2 MB / 1.062 GB, free: 30.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005781/2.902, allocations: 0.7043 MB / 1.063 GB, free: 30.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3311/3.234, allocations: 18.73 MB / 1.081 GB, free: 127.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0118/3.245, allocations: 5.429 MB / 1.086 GB, free: 127 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009056/3.255, allocations: 3.105 MB / 1.089 GB, free: 127 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006696/3.261, allocations: 3.377 MB / 1.092 GB, free: 127 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/3.261, allocations: 1.203 kB / 1.092 GB, free: 127 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5525/3.814, allocations: 160.9 MB / 1.25 GB, free: 100 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/3.814, allocations: 145.9 kB / 1.25 GB, free: 99.84 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.057/10.87, allocations: 0 / 1.25 GB, free: 99.84 MB / 490.7 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