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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 92.53 kB / 16.3 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 187.4 kB / 17.2 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002921, allocations: 4.625 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1134, allocations: 50.41 MB / 351.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2598/0.3732, allocations: 69.32 MB / 420.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04232/0.4156, allocations: 16.5 MB / 437 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01834/0.4339, allocations: 367.1 kB / 437.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01299/0.447, allocations: 3.523 MB / 440.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03325/0.4803, allocations: 9.895 MB / 450.8 MB, free: 408 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006488/0.4868, allocations: 1.287 MB / 452.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3852/0.872, allocations: 95.48 MB / 0.5348 GB, free: 95.79 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01557/0.8876, allocations: 10.16 MB / 0.5447 GB, free: 95.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004236/0.8919, allocations: 1.967 MB / 0.5466 GB, free: 95.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004497/0.8964, allocations: 2.501 MB / 0.549 GB, free: 95.06 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001327/0.8978, allocations: 248.1 kB / 0.5493 GB, free: 95.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.901, allocations: 1.287 MB / 0.5505 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003123/0.9041, allocations: 2.966 MB / 0.5534 GB, free: 95.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002344/0.9065, allocations: 1.454 MB / 0.5548 GB, free: 95.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/0.9187, allocations: 10.96 MB / 0.5655 GB, free: 89.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9188, allocations: 0 / 0.5655 GB, free: 89.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.9188, allocations: 0 / 0.5655 GB, free: 89.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005955/0.9194, allocations: 0 / 0.5655 GB, free: 89.74 MB / 446.1 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.02692/0.9463, allocations: 8.173 MB / 0.5735 GB, free: 82.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.9464, allocations: 12.03 kB / 0.5735 GB, free: 82.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006387/0.9528, allocations: 1.137 MB / 0.5746 GB, free: 82.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3038/1.257, allocations: 27.27 MB / 0.6013 GB, free: 56.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01995/1.277, allocations: 6.913 MB / 0.608 GB, free: 51.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004464/1.277, allocations: 435.1 kB / 0.6084 GB, free: 50.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004014/1.281, allocations: 0.5774 MB / 0.609 GB, free: 50.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03758/1.319, allocations: 17.1 MB / 0.6257 GB, free: 37.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005423/1.319, allocations: 78.58 kB / 0.6258 GB, free: 37.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003609/1.323, allocations: 263.6 kB / 0.626 GB, free: 37.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005141/1.328, allocations: 2.66 MB / 0.6286 GB, free: 35.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03061/1.359, allocations: 14.67 MB / 0.643 GB, free: 24.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08179/1.441, allocations: 64.21 MB / 0.7057 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0238/1.464, allocations: 8.834 MB / 0.7143 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2634/1.728, allocations: 18.26 MB / 0.7321 GB, free: 180.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.266e-05/1.728, allocations: 68.62 kB / 0.7322 GB, free: 180.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 7.013e-06/1.728, allocations: 1.188 kB / 0.7322 GB, free: 180.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.247/1.975, allocations: 74.75 MB / 0.8052 GB, free: 125.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/1.975, allocations: 376.6 kB / 0.8055 GB, free: 124.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01122/1.986, allocations: 6.875 MB / 0.8123 GB, free: 117.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001236/1.988, allocations: 83.34 kB / 0.8123 GB, free: 117.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002962/1.991, allocations: 4.846 MB / 0.8171 GB, free: 112.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002328/1.993, allocations: 1.371 MB / 0.8184 GB, free: 111.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/1.994, allocations: 182.2 kB / 0.8186 GB, free: 111.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000529/1.995, allocations: 0.6821 MB / 0.8192 GB, free: 110.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006543/2.001, allocations: 5.624 MB / 0.8247 GB, free: 105.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00816/2.009, allocations: 10.54 MB / 0.835 GB, free: 92.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008646/2.018, allocations: 7.532 MB / 0.8424 GB, free: 84.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.28e-05/2.018, allocations: 48 kB / 0.8424 GB, free: 84.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03874/2.057, allocations: 21.9 MB / 0.8638 GB, free: 62.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.733e-05/2.057, allocations: 83.98 kB / 0.8639 GB, free: 62.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/2.057, allocations: 168 kB / 0.8641 GB, free: 62.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0187/2.076, allocations: 6.921 MB / 0.8708 GB, free: 55.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007036/2.083, allocations: 2.07 MB / 0.8728 GB, free: 53.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2692/2.352, allocations: 35.21 MB / 0.9072 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0104/2.363, allocations: 0.7212 MB / 0.9079 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/2.365, allocations: 0.5112 MB / 0.9084 GB, free: 158.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * 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%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.009056/2.374, allocations: 3.418 MB / 0.9118 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001768/2.376, allocations: 0.5826 MB / 0.9123 GB, free: 158.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0339/2.41, allocations: 16.1 MB / 0.9281 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/2.41, allocations: 45.2 kB / 0.9281 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.806e-05/2.41, allocations: 19.66 kB / 0.9281 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.373e-05/2.41, allocations: 17.11 kB / 0.9281 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05778/2.468, allocations: 31.44 MB / 0.9588 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-05/2.468, allocations: 3.781 kB / 0.9588 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003283/2.471, allocations: 0.6076 MB / 0.9594 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01886/2.49, allocations: 6.573 MB / 0.9658 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/2.491, allocations: 63.36 kB / 0.9659 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03882/2.53, allocations: 33.48 MB / 0.9986 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/2.53, allocations: 0 / 0.9986 GB, free: 107.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03734/2.567, allocations: 23.93 MB / 1.022 GB, free: 83.83 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/2.57, allocations: 0.6491 MB / 1.023 GB, free: 83.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002662/2.573, allocations: 62.44 kB / 1.023 GB, free: 83.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005818/2.579, allocations: 442.5 kB / 1.023 GB, free: 82.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001522/2.58, allocations: 254.5 kB / 1.023 GB, free: 82.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004786/2.581, allocations: 93.17 kB / 1.023 GB, free: 82.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007511/2.588, allocations: 4.466 MB / 1.028 GB, free: 77.88 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/2.588, allocations: 0 / 1.028 GB, free: 77.88 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0115/2.6, allocations: 2.216 MB / 1.03 GB, free: 75.68 MB / 494.1 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.03937/2.639, allocations: 25.2 MB / 1.055 GB, free: 50.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02062/2.66, allocations: 14.2 MB / 1.068 GB, free: 36.22 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.66, allocations: 0 / 1.068 GB, free: 36.22 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009857/2.67, allocations: 6.544 MB / 1.075 GB, free: 29.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005293/2.675, allocations: 0.8372 MB / 1.076 GB, free: 28.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4102/3.085, allocations: 199.6 MB / 1.271 GB, free: 9.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007688/3.093, allocations: 5.421 MB / 1.276 GB, free: 5.598 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007248/3.1, allocations: 3.042 MB / 1.279 GB, free: 2.555 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2389/3.339, allocations: 3.396 MB / 1.282 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.452e-06/3.339, allocations: 0 / 1.282 GB, free: 157.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5265/3.866, allocations: 173.5 MB / 1.451 GB, free: 119.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002506/3.866, allocations: 219.3 kB / 1.452 GB, free: 119.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.071/9.938, allocations: 3.75 kB / 1.452 GB, free: 119.2 MB / 494.1 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