Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_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.001038/0.001038, allocations: 94.72 kB / 16.94 MB, free: 5.98 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.001073/0.001073, allocations: 177.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004949/0.000495, allocations: 15.44 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09846, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.278/0.3766, allocations: 69.65 MB / 398.1 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03965/0.4163, allocations: 16.59 MB / 414.7 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01709/0.4334, allocations: 364.9 kB / 415 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01216/0.4456, allocations: 3.544 MB / 418.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04293/0.4886, allocations: 9.931 MB / 428.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007659/0.4962, allocations: 1.29 MB / 429.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.07846/0.5747, allocations: 51.94 MB / 481.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01531/0.5901, allocations: 10.16 MB / 491.9 MB, free: 1.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004067/0.5942, allocations: 1.99 MB / 493.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004014/0.5983, allocations: 2.512 MB / 496.4 MB, free: 13.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009233/0.5992, allocations: 248 kB / 496.6 MB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002881/0.6021, allocations: 1.264 MB / 497.9 MB, free: 11.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003036/0.6052, allocations: 2.985 MB / 0.4891 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001918/0.6071, allocations: 1.458 MB / 0.4906 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.6206, allocations: 11.01 MB / 0.5013 GB, free: 12.42 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6206, allocations: 0 / 0.5013 GB, free: 12.42 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.788e-06/0.6207, allocations: 8 kB / 0.5013 GB, free: 12.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004466/0.6211, allocations: 0 / 0.5013 GB, free: 12.41 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02333/0.6444, allocations: 8.214 MB / 0.5093 GB, free: 4.113 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.6445, allocations: 8.031 kB / 0.5093 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00388/0.6484, allocations: 1.139 MB / 0.5105 GB, free: 2.957 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3134/0.9619, allocations: 27.29 MB / 0.5371 GB, free: 7.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01938/0.9813, allocations: 7.555 MB / 0.5445 GB, free: 0 / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3262/1.308, allocations: 434.3 kB / 0.5449 GB, free: 165.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002492/1.31, allocations: 0.5808 MB / 0.5455 GB, free: 165.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/1.346, allocations: 17.1 MB / 0.5622 GB, free: 158.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002618/1.346, allocations: 79.28 kB / 0.5622 GB, free: 158.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009118/1.347, allocations: 271 kB / 0.5625 GB, free: 158.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003843/1.351, allocations: 2.653 MB / 0.5651 GB, free: 158.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02608/1.377, allocations: 14.67 MB / 0.5794 GB, free: 144.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07299/1.45, allocations: 64.36 MB / 0.6423 GB, free: 79.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02101/1.471, allocations: 8.845 MB / 0.6509 GB, free: 70.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02714/1.498, allocations: 18.32 MB / 0.6688 GB, free: 51.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/1.498, allocations: 64.56 kB / 0.6689 GB, free: 51.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.801e-06/1.498, allocations: 0 / 0.6689 GB, free: 51.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4155/1.914, allocations: 74.96 MB / 0.7421 GB, free: 145.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/1.914, allocations: 378.9 kB / 0.7424 GB, free: 144.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.925, allocations: 6.946 MB / 0.7492 GB, free: 142.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00123/1.926, allocations: 83.28 kB / 0.7493 GB, free: 142.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003865/1.93, allocations: 4.864 MB / 0.754 GB, free: 138.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/1.932, allocations: 1.367 MB / 0.7554 GB, free: 137.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008304/1.933, allocations: 179.5 kB / 0.7555 GB, free: 137.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004269/1.934, allocations: 0.6843 MB / 0.7562 GB, free: 136.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007469/1.941, allocations: 5.619 MB / 0.7617 GB, free: 134.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01019/1.951, allocations: 10.55 MB / 0.772 GB, free: 123.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009867/1.961, allocations: 7.539 MB / 0.7794 GB, free: 116.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/1.961, allocations: 48 kB / 0.7794 GB, free: 116.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04182/2.003, allocations: 21.91 MB / 0.8008 GB, free: 94.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/2.003, allocations: 76 kB / 0.8009 GB, free: 94.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001848/2.004, allocations: 172 kB / 0.801 GB, free: 93.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01967/2.023, allocations: 6.922 MB / 0.8078 GB, free: 86.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007536/2.031, allocations: 2.07 MB / 0.8098 GB, free: 84.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04118/2.072, allocations: 35.21 MB / 0.8442 GB, free: 49.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009401/2.081, allocations: 0.7254 MB / 0.8449 GB, free: 48.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001917/2.083, allocations: 0.5084 MB / 0.8454 GB, free: 48.03 MB / 446.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.007299/2.091, allocations: 3.434 MB / 0.8488 GB, free: 44.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001991/2.093, allocations: 0.5862 MB / 0.8493 GB, free: 43.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03123/2.124, allocations: 16.1 MB / 0.8651 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-05/2.124, allocations: 53 kB / 0.8651 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.819e-05/2.124, allocations: 20 kB / 0.8651 GB, free: 27.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.161e-05/2.124, allocations: 15.94 kB / 0.8651 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3404/2.465, allocations: 31.46 MB / 0.8959 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/2.465, allocations: 3.719 kB / 0.8959 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00336/2.468, allocations: 0.6066 MB / 0.8965 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01966/2.488, allocations: 6.568 MB / 0.9029 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001048/2.489, allocations: 63.3 kB / 0.9029 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04117/2.53, allocations: 33.47 MB / 0.9356 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/2.53, allocations: 6.078 kB / 0.9356 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03819/2.568, allocations: 23.95 MB / 0.959 GB, free: 83.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006159/2.575, allocations: 1.659 MB / 0.9606 GB, free: 82.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002605/2.577, allocations: 60.7 kB / 0.9607 GB, free: 82.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006314/2.584, allocations: 436.2 kB / 0.9611 GB, free: 81.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001783/2.585, allocations: 257.4 kB / 0.9614 GB, free: 81.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004783/2.586, allocations: 94.42 kB / 0.9614 GB, free: 81.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008038/2.594, allocations: 4.515 MB / 0.9659 GB, free: 76.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.122e-06/2.594, allocations: 0 / 0.9659 GB, free: 76.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.014/2.608, allocations: 2.22 MB / 0.968 GB, free: 74.58 MB / 446.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.04118/2.649, allocations: 25.18 MB / 0.9926 GB, free: 49.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02119/2.67, allocations: 14.2 MB / 1.006 GB, free: 35.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/2.671, allocations: 0 / 1.006 GB, free: 35.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009838/2.68, allocations: 6.545 MB / 1.013 GB, free: 28.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006197/2.687, allocations: 0.8553 MB / 1.014 GB, free: 27.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4036/3.09, allocations: 200 MB / 1.209 GB, free: 15.51 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008645/3.099, allocations: 5.436 MB / 1.214 GB, free: 10.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.009072/3.108, allocations: 3.046 MB / 1.217 GB, free: 7.559 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006932/3.115, allocations: 3.416 MB / 1.221 GB, free: 4.141 MB / 478.1 MB Notification: Performance of SimCode: time 4.088e-06/3.115, allocations: 0 / 1.221 GB, free: 4.141 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7118/3.827, allocations: 174.1 MB / 1.391 GB, free: 119.9 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/3.827, allocations: 217.8 kB / 1.391 GB, free: 119.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.153/9.981, allocations: 0.9688 kB / 1.391 GB, free: 119.7 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat