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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.001087/0.001087, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001288/0.001288, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2057/0.2057, allocations: 9.1 MB / 300.1 MB, free: 2.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00042/0.0004203, allocations: 12 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1212, allocations: 52.43 MB / 415.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.2714/0.3927, allocations: 23 MB / 438.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01526/0.408, allocations: 6.052 MB / 444.6 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006515/0.4145, allocations: 97.84 kB / 444.7 MB, free: 27.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004491/0.4191, allocations: 1.12 MB / 445.8 MB, free: 27.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01342/0.4325, allocations: 3.467 MB / 449.3 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.4341, allocations: 129 kB / 449.4 MB, free: 25.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003185/0.4373, allocations: 1.387 MB / 450.8 MB, free: 24.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001226/0.4385, allocations: 0.7963 MB / 451.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009383/0.4395, allocations: 0.6556 MB / 452.2 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.4405, allocations: 0.9602 MB / 453.2 MB, free: 23.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002644/0.4408, allocations: 127.4 kB / 453.3 MB, free: 23.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/0.442, allocations: 0.6611 MB / 454 MB, free: 23.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008787/0.4429, allocations: 1.023 MB / 455 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005627/0.4435, allocations: 0.6281 MB / 455.6 MB, free: 22.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.4468, allocations: 3.629 MB / 459.2 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4468, allocations: 0 / 459.2 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4468, allocations: 3.375 kB / 459.3 MB, free: 22.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001152/0.4469, allocations: 0 / 459.3 MB, free: 22.01 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.007994/0.4549, allocations: 3.306 MB / 462.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.455, allocations: 9.062 kB / 462.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001026/0.456, allocations: 0.5294 MB / 463.1 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007545/0.4636, allocations: 2.167 MB / 465.3 MB, free: 19.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/0.4676, allocations: 1.33 MB / 466.6 MB, free: 18.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.4678, allocations: 148.6 kB / 466.7 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007195/0.4685, allocations: 192.2 kB / 466.9 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0176/0.4861, allocations: 7.908 MB / 474.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.4863, allocations: 25.67 kB / 474.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/0.4866, allocations: 93.19 kB / 474.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003738/0.4904, allocations: 1.85 MB / 476.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.5086, allocations: 7.123 MB / 483.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04021/0.5489, allocations: 23.88 MB / 0.4959 GB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005533/0.5545, allocations: 2.365 MB / 0.4982 GB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/0.5559, allocations: 1.381 MB / 0.4996 GB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.556, allocations: 43.56 kB / 0.4996 GB, free: 2.586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=151): time 4.068e-06/0.556, allocations: 4 kB / 0.4996 GB, free: 2.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=175): time 0.01857/0.5746, allocations: 8.182 MB / 0.5076 GB, free: 10.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.5747, allocations: 72.7 kB / 0.5077 GB, free: 10.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.5784, allocations: 2.492 MB / 0.5101 GB, free: 7.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.5786, allocations: 53.7 kB / 0.5101 GB, free: 7.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.58, allocations: 1.997 MB / 0.5121 GB, free: 5.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006399/0.5807, allocations: 0.6359 MB / 0.5127 GB, free: 4.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.5808, allocations: 76 kB / 0.5128 GB, free: 4.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00028/0.5811, allocations: 478.6 kB / 0.5132 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002132/0.5833, allocations: 1.292 MB / 0.5145 GB, free: 3.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003534/0.5868, allocations: 3.37 MB / 0.5178 GB, free: 14.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003505/0.5903, allocations: 2.117 MB / 0.5199 GB, free: 12.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.602e-05/0.5904, allocations: 23.95 kB / 0.5199 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.01198/0.6024, allocations: 4.867 MB / 0.5246 GB, free: 7.617 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.362e-05/0.6025, allocations: 37.88 kB / 0.5247 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/0.6027, allocations: 76.12 kB / 0.5248 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.6037, allocations: 347 kB / 0.5251 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/0.6069, allocations: 0.8616 MB / 0.5259 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004614/0.6115, allocations: 3.428 MB / 0.5293 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003459/0.615, allocations: 196 kB / 0.5295 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005394/0.6156, allocations: 228 kB / 0.5297 GB, free: 2.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 332 * 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 (469): * Single equations (assignments): 464 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003171/0.6188, allocations: 1.547 MB / 0.5312 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004778/0.6192, allocations: 221.1 kB / 0.5314 GB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003772/0.623, allocations: 2.379 MB / 0.5337 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/0.6231, allocations: 31.98 kB / 0.5338 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.6232, allocations: 4 kB / 0.5338 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.6232, allocations: 7.969 kB / 0.5338 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.6344, allocations: 6.362 MB / 0.54 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/0.6345, allocations: 7.984 kB / 0.54 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009541/0.6355, allocations: 239.6 kB / 0.5402 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000749/0.6362, allocations: 246.7 kB / 0.5404 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.6364, allocations: 39.98 kB / 0.5405 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003475/0.6398, allocations: 2.804 MB / 0.5432 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/0.6399, allocations: 15.98 kB / 0.5432 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005561/0.6454, allocations: 3.873 MB / 0.547 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.6465, allocations: 314.2 kB / 0.5473 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.6468, allocations: 28 kB / 0.5473 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008272/0.6476, allocations: 79.83 kB / 0.5474 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.6478, allocations: 112.6 kB / 0.5475 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.6479, allocations: 48 kB / 0.5476 GB, free: 15.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002729/0.6507, allocations: 1.631 MB / 0.5492 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.003e-06/0.6507, allocations: 0 / 0.5492 GB, free: 13.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003785/0.6545, allocations: 0.6952 MB / 0.5498 GB, free: 13 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (132): * Single equations (assignments): 127 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006696/0.6612, allocations: 6.023 MB / 0.5557 GB, free: 6.773 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005936/0.6671, allocations: 3.225 MB / 0.5589 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/0.6672, allocations: 0 / 0.5589 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.669, allocations: 1.126 MB / 0.56 GB, free: 2.426 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.6712, allocations: 354.2 kB / 0.5603 GB, free: 2.086 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2877/0.9589, allocations: 70.75 MB / 0.6294 GB, free: 60.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002397/0.9614, allocations: 2.64 MB / 0.632 GB, free: 60 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002827/0.9642, allocations: 1.231 MB / 0.6332 GB, free: 59.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/0.9658, allocations: 1.298 MB / 0.6345 GB, free: 59.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/0.9658, allocations: 0 / 0.6345 GB, free: 59.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09417/1.06, allocations: 52.25 MB / 0.6855 GB, free: 32.91 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/1.06, allocations: 190.1 kB / 0.6857 GB, free: 32.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.068/4.129, allocations: 2.078 kB / 0.6857 GB, free: 32.67 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/linux/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) Environment - environmentSimulation: