Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) 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(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.001257/0.001257, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001478/0.001478, allocations: 192.2 kB / 16.25 MB, free: 6.629 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1611/0.1611, allocations: 9.106 MB / 299.2 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 51.43 MB / 413 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.219/0.3246, allocations: 27.03 MB / 440 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.3381, allocations: 6.051 MB / 446 MB, free: 25.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006974/0.3452, allocations: 103.3 kB / 446.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.3465, allocations: 298.8 kB / 446.4 MB, free: 25.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003637/0.3502, allocations: 1.295 MB / 447.7 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.3506, allocations: 112.7 kB / 447.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002748/0.3534, allocations: 2.511 MB / 450.3 MB, free: 23.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001113/0.3545, allocations: 0.9251 MB / 451.3 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.3555, allocations: 0.8922 MB / 452.2 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.3568, allocations: 1.403 MB / 453.6 MB, free: 21.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003043/0.3571, allocations: 228.5 kB / 453.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.3584, allocations: 0.8448 MB / 454.6 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000775/0.3591, allocations: 1.222 MB / 455.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001/0.3602, allocations: 1.555 MB / 457.4 MB, free: 20.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004075/0.3642, allocations: 4.733 MB / 462.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3643, allocations: 0 / 462.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3643, allocations: 0 / 462.1 MB, free: 18.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001086/0.3644, allocations: 0 / 462.1 MB, free: 18.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.008915/0.3733, allocations: 3.832 MB / 466 MB, free: 16.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.3734, allocations: 9 kB / 466 MB, free: 16.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005935/0.374, allocations: 0.5345 MB / 466.5 MB, free: 16.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006061/0.3801, allocations: 1.76 MB / 468.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003175/0.3833, allocations: 1.351 MB / 469.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.3834, allocations: 146.7 kB / 469.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005376/0.384, allocations: 193.5 kB / 470 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01481/0.3988, allocations: 7.906 MB / 477.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.674e-05/0.3989, allocations: 21.86 kB / 477.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/0.3993, allocations: 93.94 kB / 478 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003474/0.4027, allocations: 1.845 MB / 479.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/0.4184, allocations: 7.129 MB / 487 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03308/0.4515, allocations: 23.92 MB / 0.4989 GB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005289/0.4568, allocations: 2.371 MB / 0.5012 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.4582, allocations: 0.8235 MB / 0.502 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006742/0.465, allocations: 4.597 MB / 0.5065 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.4651, allocations: 43.56 kB / 0.5066 GB, free: 9.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.587e-06/0.4651, allocations: 0 / 0.5066 GB, free: 9.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01428/0.4794, allocations: 7.051 MB / 0.5134 GB, free: 2.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.4794, allocations: 64.72 kB / 0.5135 GB, free: 2.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003502/0.483, allocations: 2.596 MB / 0.516 GB, free: 15.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.4831, allocations: 41.7 kB / 0.5161 GB, free: 15.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.4844, allocations: 2.066 MB / 0.5181 GB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/0.4849, allocations: 0.5667 MB / 0.5186 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001012/0.486, allocations: 0.7662 MB / 0.5194 GB, free: 12.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.4861, allocations: 313.1 kB / 0.5197 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.488, allocations: 1.276 MB / 0.5209 GB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003096/0.4911, allocations: 3.382 MB / 0.5242 GB, free: 6.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005478/0.4966, allocations: 4.997 MB / 0.5291 GB, free: 276 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.419e-05/0.4967, allocations: 20 kB / 0.5291 GB, free: 256 kB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008612/0.5053, allocations: 4.835 MB / 0.5339 GB, free: 11.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.5054, allocations: 36 kB / 0.5339 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.5055, allocations: 72 kB / 0.534 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009311/0.5065, allocations: 347.3 kB / 0.5343 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002636/0.5091, allocations: 0.85 MB / 0.5351 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004498/0.5136, allocations: 3.653 MB / 0.5387 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/0.5164, allocations: 191.9 kB / 0.5389 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005275/0.517, allocations: 228 kB / 0.5391 GB, free: 5.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002735/0.5197, allocations: 1.55 MB / 0.5406 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004702/0.5202, allocations: 213.2 kB / 0.5408 GB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.5239, allocations: 2.001 MB / 0.5428 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001116/0.524, allocations: 27.98 kB / 0.5428 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.524, allocations: 8 kB / 0.5428 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.524, allocations: 7.969 kB / 0.5428 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.5346, allocations: 5.688 MB / 0.5484 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.5347, allocations: 7.938 kB / 0.5484 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007996/0.5355, allocations: 204 kB / 0.5486 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000686/0.5362, allocations: 244.5 kB / 0.5488 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.5363, allocations: 31.98 kB / 0.5488 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003483/0.5398, allocations: 2.952 MB / 0.5517 GB, free: 8.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5398, allocations: 4 kB / 0.5517 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004636/0.5444, allocations: 3.087 MB / 0.5547 GB, free: 5.551 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008466/0.5453, allocations: 298.3 kB / 0.555 GB, free: 5.238 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005351/0.5459, allocations: 24 kB / 0.555 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.547, allocations: 67.92 kB / 0.5551 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.5472, allocations: 92.77 kB / 0.5552 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.236e-05/0.5473, allocations: 43.98 kB / 0.5552 GB, free: 5.012 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003198/0.5505, allocations: 1.675 MB / 0.5569 GB, free: 3.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5505, allocations: 0 / 0.5569 GB, free: 3.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003249/0.5538, allocations: 0.6758 MB / 0.5575 GB, free: 2.645 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005272/0.5591, allocations: 3.735 MB / 0.5612 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008092/0.5672, allocations: 4.37 MB / 0.5654 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.5672, allocations: 4 kB / 0.5654 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.5688, allocations: 1.029 MB / 0.5664 GB, free: 9.438 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.5715, allocations: 386 kB / 0.5668 GB, free: 9.078 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2299/0.8014, allocations: 31.07 MB / 0.5972 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002385/0.8038, allocations: 2.554 MB / 0.5996 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002626/0.8065, allocations: 1.188 MB / 0.6008 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/0.8079, allocations: 1.292 MB / 0.6021 GB, free: 109.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/0.8079, allocations: 0 / 0.6021 GB, free: 109.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08667/0.8946, allocations: 47.54 MB / 0.6485 GB, free: 85.83 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.8949, allocations: 208.8 kB / 0.6487 GB, free: 85.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.007/3.902, allocations: 0 / 0.6487 GB, free: 85.57 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)