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.0007918/0.0007919, allocations: 93.8 kB / 16.31 MB, free: 5.57 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.0007948/0.0007949, allocations: 178.2 kB / 17.2 MB, free: 5.531 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.334/1.334, allocations: 223.2 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002614, allocations: 12 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 50.42 MB / 351.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.3112/0.4275, allocations: 73.53 MB / 424.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04299/0.4706, allocations: 15.77 MB / 440.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01982/0.4904, allocations: 378.9 kB / 441 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01389/0.5044, allocations: 3.616 MB / 444.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0351/0.5395, allocations: 10.76 MB / 455.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006469/0.546, allocations: 1.217 MB / 456.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4215/0.9676, allocations: 120.8 MB / 0.5639 GB, free: 87.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01515/0.9828, allocations: 10.22 MB / 0.5739 GB, free: 80.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005325/0.9882, allocations: 2.398 MB / 0.5762 GB, free: 79.08 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006067/0.9943, allocations: 3.64 MB / 0.5798 GB, free: 76.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00192/0.9962, allocations: 244 kB / 0.58 GB, free: 76.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004019/1, allocations: 1.309 MB / 0.5813 GB, free: 75.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004873/1.005, allocations: 3.199 MB / 0.5844 GB, free: 72.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003752/1.009, allocations: 1.45 MB / 0.5858 GB, free: 72.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/1.022, allocations: 10.97 MB / 0.5965 GB, free: 62.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/1.022, allocations: 4 kB / 0.5965 GB, free: 62.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.384e-06/1.022, allocations: 0 / 0.5965 GB, free: 62.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005744/1.022, allocations: 3.938 kB / 0.5965 GB, free: 62.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.02202/1.044, allocations: 7.862 MB / 0.6042 GB, free: 55.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/1.045, allocations: 10 kB / 0.6042 GB, free: 55.54 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004167/1.049, allocations: 1.136 MB / 0.6053 GB, free: 54.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2453/1.294, allocations: 23.86 MB / 0.6286 GB, free: 31.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/1.311, allocations: 7.705 MB / 0.6362 GB, free: 26.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004096/1.311, allocations: 437.6 kB / 0.6366 GB, free: 26.08 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002361/1.314, allocations: 0.5856 MB / 0.6372 GB, free: 25.69 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03234/1.346, allocations: 16.87 MB / 0.6536 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004568/1.346, allocations: 81.86 kB / 0.6537 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002179/1.349, allocations: 268.1 kB / 0.654 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004077/1.353, allocations: 2.654 MB / 0.6565 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02774/1.38, allocations: 14.39 MB / 0.6706 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5556/1.936, allocations: 63.92 MB / 0.733 GB, free: 152.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02478/1.961, allocations: 8.662 MB / 0.7415 GB, free: 152.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007615/1.969, allocations: 4.915 MB / 0.7463 GB, free: 152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/1.992, allocations: 18.1 MB / 0.764 GB, free: 143.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/1.992, allocations: 72.17 kB / 0.764 GB, free: 143.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 7.614e-06/1.992, allocations: 3.469 kB / 0.764 GB, free: 143.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.2154/2.207, allocations: 73.85 MB / 0.8362 GB, free: 75.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/2.207, allocations: 371.9 kB / 0.8365 GB, free: 74.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008307/2.216, allocations: 6.393 MB / 0.8428 GB, free: 68.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009735/2.217, allocations: 85.7 kB / 0.8428 GB, free: 68.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002732/2.219, allocations: 4.84 MB / 0.8476 GB, free: 63.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001979/2.221, allocations: 1.365 MB / 0.8489 GB, free: 62.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006357/2.222, allocations: 180 kB / 0.8491 GB, free: 61.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003694/2.222, allocations: 0.6857 MB / 0.8497 GB, free: 61.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006504/2.229, allocations: 5.624 MB / 0.8552 GB, free: 55.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008827/2.238, allocations: 10.58 MB / 0.8656 GB, free: 42.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009465/2.247, allocations: 7.527 MB / 0.8729 GB, free: 35.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/2.247, allocations: 48 kB / 0.873 GB, free: 35.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04099/2.288, allocations: 21.91 MB / 0.8944 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000199/2.289, allocations: 76 kB / 0.8944 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000252/2.289, allocations: 175.9 kB / 0.8946 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01816/2.307, allocations: 6.919 MB / 0.9013 GB, free: 6.121 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00672/2.314, allocations: 2.07 MB / 0.9034 GB, free: 4.047 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2864/2.6, allocations: 34 MB / 0.9366 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00836/2.609, allocations: 0.721 MB / 0.9373 GB, free: 156.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001672/2.61, allocations: 0.5099 MB / 0.9378 GB, free: 156.6 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.006088/2.617, allocations: 3.415 MB / 0.9411 GB, free: 155.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001395/2.618, allocations: 0.5896 MB / 0.9417 GB, free: 155.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02668/2.645, allocations: 16.09 MB / 0.9574 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.43e-05/2.645, allocations: 56.95 kB / 0.9575 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.081e-05/2.645, allocations: 14.97 kB / 0.9575 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-05/2.645, allocations: 19.75 kB / 0.9575 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04759/2.692, allocations: 31.41 MB / 0.9882 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-05/2.693, allocations: 0 / 0.9882 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/2.696, allocations: 0.6075 MB / 0.9888 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01716/2.713, allocations: 6.573 MB / 0.9952 GB, free: 112.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009735/2.714, allocations: 64.66 kB / 0.9952 GB, free: 112.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03817/2.752, allocations: 32.27 MB / 1.027 GB, free: 80.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/2.752, allocations: 4 kB / 1.027 GB, free: 80.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0352/2.787, allocations: 23.52 MB / 1.05 GB, free: 56.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002148/2.79, allocations: 0.6339 MB / 1.05 GB, free: 55.87 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002085/2.792, allocations: 60 kB / 1.05 GB, free: 55.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004492/2.796, allocations: 431.3 kB / 1.051 GB, free: 55.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/2.797, allocations: 250.6 kB / 1.051 GB, free: 55.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003517/2.798, allocations: 98.83 kB / 1.051 GB, free: 55.05 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006233/2.804, allocations: 4.074 MB / 1.055 GB, free: 50.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.42e-07/2.804, allocations: 0 / 1.055 GB, free: 50.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01091/2.815, allocations: 2.193 MB / 1.057 GB, free: 48.8 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.0368/2.852, allocations: 24.29 MB / 1.081 GB, free: 24.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.222/3.074, allocations: 14.2 MB / 1.095 GB, free: 172.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/3.074, allocations: 1.531 kB / 1.095 GB, free: 172.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01135/3.085, allocations: 6.548 MB / 1.101 GB, free: 171.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006655/3.092, allocations: 0.895 MB / 1.102 GB, free: 171 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1442/3.236, allocations: 81.37 MB / 1.182 GB, free: 104.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008728/3.245, allocations: 5.278 MB / 1.187 GB, free: 99.18 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007314/3.252, allocations: 3.025 MB / 1.19 GB, free: 96.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004912/3.257, allocations: 3.397 MB / 1.193 GB, free: 92.75 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/3.257, allocations: 3.938 kB / 1.193 GB, free: 92.75 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4731/3.73, allocations: 172.2 MB / 1.361 GB, free: 108.7 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/3.73, allocations: 230.7 kB / 1.361 GB, free: 108.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.145/9.875, allocations: 3.938 kB / 1.361 GB, free: 108.5 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