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.001776/0.001776, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002035/0.002035, allocations: 197.4 kB / 16.14 MB, free: 6.664 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.353/1.353, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1411/0.1411, allocations: 9.091 MB / 299 MB, free: 1.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 67.89 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08963, allocations: 51.43 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.18/0.2696, allocations: 27.04 MB / 439.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009517/0.2792, allocations: 6.086 MB / 445.9 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003248/0.2824, allocations: 98.03 kB / 446 MB, free: 25.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006524/0.2831, allocations: 300.3 kB / 446.3 MB, free: 25.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002149/0.2853, allocations: 1.307 MB / 447.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.2856, allocations: 117.7 kB / 447.7 MB, free: 24.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002003/0.2876, allocations: 3.461 MB / 451.2 MB, free: 23.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006899/0.2883, allocations: 0.8159 MB / 452 MB, free: 22.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005584/0.2889, allocations: 0.76 MB / 452.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009673/0.2898, allocations: 1.302 MB / 454 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002076/0.29, allocations: 133.4 kB / 454.2 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.2911, allocations: 0.7814 MB / 455 MB, free: 21.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006225/0.2917, allocations: 1.124 MB / 456.1 MB, free: 21.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008144/0.2925, allocations: 1.462 MB / 457.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.2952, allocations: 4.57 MB / 462.1 MB, free: 18.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2952, allocations: 4 kB / 462.1 MB, free: 18.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2952, allocations: 0 / 462.1 MB, free: 18.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.087e-05/0.2953, allocations: 0 / 462.1 MB, free: 18.76 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.006576/0.3019, allocations: 3.828 MB / 465.9 MB, free: 16.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3019, allocations: 9.719 kB / 466 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004879/0.3024, allocations: 0.5316 MB / 466.5 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005731/0.3081, allocations: 1.764 MB / 468.3 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002231/0.3104, allocations: 1.351 MB / 469.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.881e-05/0.3105, allocations: 147.3 kB / 469.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003587/0.3109, allocations: 194.3 kB / 469.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01242/0.3233, allocations: 7.9 MB / 477.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.671e-05/0.3234, allocations: 29.72 kB / 477.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002891/0.3237, allocations: 98.42 kB / 478 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002748/0.3265, allocations: 1.847 MB / 479.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01174/0.3382, allocations: 7.116 MB / 486.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02796/0.3662, allocations: 23.91 MB / 0.4989 GB, free: 2.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004916/0.3712, allocations: 2.379 MB / 0.5012 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.3723, allocations: 0.8157 MB / 0.502 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006227/0.3786, allocations: 4.597 MB / 0.5065 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3786, allocations: 39.56 kB / 0.5065 GB, free: 9.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.236e-06/0.3786, allocations: 0 / 0.5065 GB, free: 9.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01395/0.3926, allocations: 7.048 MB / 0.5134 GB, free: 2.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.3927, allocations: 68.66 kB / 0.5135 GB, free: 2.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/0.3961, allocations: 2.604 MB / 0.516 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.751e-05/0.3962, allocations: 45.7 kB / 0.516 GB, free: 15.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.3975, allocations: 2.062 MB / 0.5181 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.3979, allocations: 0.5628 MB / 0.5186 GB, free: 13.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009381/0.3989, allocations: 0.7701 MB / 0.5194 GB, free: 12.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3991, allocations: 301.1 kB / 0.5196 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.401, allocations: 1.276 MB / 0.5209 GB, free: 10.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003352/0.4044, allocations: 3.382 MB / 0.5242 GB, free: 6.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005407/0.4098, allocations: 4.998 MB / 0.5291 GB, free: 324 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-05/0.4098, allocations: 27.94 kB / 0.5291 GB, free: 296 kB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007554/0.4174, allocations: 4.824 MB / 0.5338 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.4175, allocations: 36 kB / 0.5338 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.824e-05/0.4176, allocations: 76.86 kB / 0.5339 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008168/0.4184, allocations: 347 kB / 0.5343 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002309/0.4207, allocations: 0.85 MB / 0.5351 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004125/0.4248, allocations: 3.346 MB / 0.5383 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/0.4273, allocations: 191.9 kB / 0.5385 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.4276, allocations: 227.9 kB / 0.5387 GB, free: 6.27 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.002365/0.4299, allocations: 1.558 MB / 0.5403 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.4303, allocations: 221.1 kB / 0.5405 GB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.4334, allocations: 1.997 MB / 0.5424 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.684e-05/0.4335, allocations: 32.25 kB / 0.5425 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4335, allocations: 3.938 kB / 0.5425 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4335, allocations: 3.984 kB / 0.5425 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008694/0.4422, allocations: 5.692 MB / 0.548 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4422, allocations: 4 kB / 0.548 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007636/0.443, allocations: 203.7 kB / 0.5482 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006514/0.4437, allocations: 241 kB / 0.5485 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.088e-05/0.4437, allocations: 24 kB / 0.5485 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/0.4468, allocations: 2.739 MB / 0.5512 GB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4468, allocations: 8.062 kB / 0.5512 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.451, allocations: 3.094 MB / 0.5542 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005511/0.4516, allocations: 290.4 kB / 0.5545 GB, free: 5.812 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.4518, allocations: 31.92 kB / 0.5545 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007445/0.4526, allocations: 63.92 kB / 0.5546 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.4528, allocations: 84.83 kB / 0.5546 GB, free: 5.637 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-05/0.4528, allocations: 47.98 kB / 0.5547 GB, free: 5.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.4552, allocations: 1.686 MB / 0.5563 GB, free: 3.887 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4552, allocations: 0 / 0.5563 GB, free: 3.887 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002557/0.4577, allocations: 0.6757 MB / 0.557 GB, free: 3.211 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.004622/0.4624, allocations: 3.73 MB / 0.5606 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004788/0.4672, allocations: 3.125 MB / 0.5637 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4672, allocations: 0 / 0.5637 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001431/0.4686, allocations: 1.024 MB / 0.5647 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.4706, allocations: 367.9 kB / 0.565 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1898/0.6604, allocations: 31.07 MB / 0.5954 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.6624, allocations: 2.547 MB / 0.5979 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002403/0.6648, allocations: 1.179 MB / 0.599 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.666, allocations: 1.29 MB / 0.6003 GB, free: 110 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.666, allocations: 0 / 0.6003 GB, free: 110 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06543/0.7315, allocations: 46.66 MB / 0.6458 GB, free: 87.02 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/0.7316, allocations: 209.6 kB / 0.646 GB, free: 86.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.418, allocations: 0 / 0.646 GB, free: 86.76 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)