Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001586/0.001587, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.619/1.619, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008885/0.0008884, allocations: 88.08 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.428e-05/4.516e-05, allocations: 4 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4042/0.5387, allocations: 103.9 MB / 499.1 MB, free: 5.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.539, allocations: 94.83 kB / 499.2 MB, free: 5.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6605/1.2, allocations: 144.1 MB / 0.6282 GB, free: 71.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.2, allocations: 1.406 kB / 0.6282 GB, free: 71.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008916/1.201, allocations: 152.1 kB / 0.6284 GB, free: 71.56 MB / 442.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.02764/1.228, allocations: 7.54 MB / 0.6357 GB, free: 68.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/1.228, allocations: 7.75 kB / 0.6357 GB, free: 68.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04382/1.272, allocations: 11.73 MB / 0.6472 GB, free: 68.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02386/1.296, allocations: 8.987 MB / 0.656 GB, free: 64.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005314/1.297, allocations: 228.6 kB / 0.6562 GB, free: 64.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004156/1.301, allocations: 433.8 kB / 0.6566 GB, free: 64.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02167/1.322, allocations: 9.856 MB / 0.6662 GB, free: 61.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03585/1.358, allocations: 14.61 MB / 0.6805 GB, free: 53.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009458/1.359, allocations: 101.8 kB / 0.6806 GB, free: 53.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004119/1.363, allocations: 42.62 kB / 0.6806 GB, free: 53.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002491/1.366, allocations: 1.456 MB / 0.682 GB, free: 53.42 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4032/1.769, allocations: 71.24 MB / 0.7516 GB, free: 76.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007471/1.777, allocations: 6.011 MB / 0.7575 GB, free: 75.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004828/1.782, allocations: 4.612 MB / 0.762 GB, free: 75.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009907/1.783, allocations: 0.8667 MB / 0.7628 GB, free: 74.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.64e-05/1.783, allocations: 67.97 kB / 0.7629 GB, free: 74.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=292): time 6.001e-06/1.783, allocations: 0 / 0.7629 GB, free: 74.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=385): time 0.1258/1.909, allocations: 53.2 MB / 0.8149 GB, free: 64.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/1.909, allocations: 380.1 kB / 0.8152 GB, free: 64.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.919, allocations: 4.794 MB / 0.8199 GB, free: 62.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001239/1.921, allocations: 28.98 kB / 0.8199 GB, free: 62.31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003267/1.924, allocations: 4.899 MB / 0.8247 GB, free: 58.69 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0021/1.926, allocations: 1.362 MB / 0.826 GB, free: 57.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009973/1.927, allocations: 0 / 0.826 GB, free: 57.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000487/1.927, allocations: 0.7008 MB / 0.8267 GB, free: 57.19 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006578/1.934, allocations: 5.324 MB / 0.8319 GB, free: 55.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01233/1.946, allocations: 10.38 MB / 0.8421 GB, free: 46.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/1.957, allocations: 7.303 MB / 0.8492 GB, free: 43.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001899/1.957, allocations: 50.59 kB / 0.8492 GB, free: 43.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.04341/2, allocations: 20.26 MB / 0.869 GB, free: 31.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/2.001, allocations: 84 kB / 0.8691 GB, free: 31.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/2.001, allocations: 176 kB / 0.8693 GB, free: 30.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01902/2.02, allocations: 6.513 MB / 0.8756 GB, free: 26.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007874/2.028, allocations: 2.104 MB / 0.8777 GB, free: 24.74 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04751/2.075, allocations: 31.1 MB / 0.9081 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/2.086, allocations: 0.5365 MB / 0.9086 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003239/2.089, allocations: 0.5253 MB / 0.9091 GB, free: 15.12 MB / 474.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.004354/2.093, allocations: 0.5538 MB / 0.9096 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.312/2.405, allocations: 14.8 MB / 0.9241 GB, free: 81.67 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002091/2.407, allocations: 0.5534 MB / 0.9246 GB, free: 81.67 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04656/2.454, allocations: 15.18 MB / 0.9394 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000137/2.454, allocations: 53.81 kB / 0.9395 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.771e-05/2.454, allocations: 16.12 kB / 0.9395 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002035/2.455, allocations: 19.39 kB / 0.9395 GB, free: 81.38 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0617/2.516, allocations: 29.39 MB / 0.9682 GB, free: 74.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.863e-05/2.516, allocations: 5.5 kB / 0.9682 GB, free: 74.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/2.52, allocations: 0.5955 MB / 0.9688 GB, free: 74.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01815/2.538, allocations: 6.106 MB / 0.9748 GB, free: 73.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009177/2.539, allocations: 14.94 kB / 0.9748 GB, free: 73.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03463/2.573, allocations: 28.59 MB / 1.003 GB, free: 60.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/2.573, allocations: 8.531 kB / 1.003 GB, free: 60.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03647/2.61, allocations: 22.91 MB / 1.025 GB, free: 52.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001816/2.612, allocations: 0.5636 MB / 1.026 GB, free: 51.74 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002032/2.614, allocations: 5.109 kB / 1.026 GB, free: 51.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005067/2.619, allocations: 355.3 kB / 1.026 GB, free: 51.74 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001484/2.62, allocations: 259.4 kB / 1.026 GB, free: 51.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008134/2.621, allocations: 97.75 kB / 1.026 GB, free: 51.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00675/2.628, allocations: 3.289 MB / 1.03 GB, free: 50.47 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.628, allocations: 0 / 1.03 GB, free: 50.47 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01126/2.639, allocations: 1.941 MB / 1.031 GB, free: 50.46 MB / 474.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.03745/2.677, allocations: 24.28 MB / 1.055 GB, free: 33.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01771/2.695, allocations: 13.41 MB / 1.068 GB, free: 21.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/2.695, allocations: 0 / 1.068 GB, free: 21.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008519/2.703, allocations: 6.197 MB / 1.074 GB, free: 15.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005271/2.708, allocations: 0.7154 MB / 1.075 GB, free: 15.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3174/3.026, allocations: 18.74 MB / 1.093 GB, free: 96.22 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006897/3.033, allocations: 5.425 MB / 1.099 GB, free: 95.34 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008512/3.041, allocations: 3.097 MB / 1.102 GB, free: 95.28 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005736/3.047, allocations: 3.388 MB / 1.105 GB, free: 95.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/3.047, allocations: 0 / 1.105 GB, free: 95.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2236/3.271, allocations: 161 MB / 1.262 GB, free: 6.703 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/3.271, allocations: 149 kB / 1.262 GB, free: 6.512 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/10.23, allocations: 3.938 kB / 1.262 GB, free: 6.508 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat