Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.001468/0.001468, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 194.8 kB / 16.53 MB, free: 6.391 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.45/1.45, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1879/0.1879, allocations: 9.1 MB / 299.5 MB, free: 1.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 63.89 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1224, allocations: 51.44 MB / 413.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01066/0.1331, allocations: 8.644 MB / 422.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2339/0.3671, allocations: 2.593 MB / 424.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001374/0.3685, allocations: 32.88 kB / 424.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009141/0.3695, allocations: 368.1 kB / 425.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003292/0.3728, allocations: 1.403 MB / 426.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.3732, allocations: 142.3 kB / 426.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002871/0.3761, allocations: 2.524 MB / 429.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/0.3773, allocations: 0.9347 MB / 430.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.3785, allocations: 0.8971 MB / 431 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.3797, allocations: 1.316 MB / 432.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003393/0.3801, allocations: 232.6 kB / 432.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3815, allocations: 0.836 MB / 433.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000874/0.3824, allocations: 1.222 MB / 434.6 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.3835, allocations: 1.565 MB / 436.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003836/0.3873, allocations: 4.754 MB / 440.9 MB, free: 31.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.3873, allocations: 0 / 440.9 MB, free: 31.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3874, allocations: 4 kB / 440.9 MB, free: 31.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.177e-05/0.3874, allocations: 0 / 440.9 MB, free: 31.58 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008232/0.3957, allocations: 3.877 MB / 444.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3957, allocations: 15.75 kB / 444.8 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006383/0.3964, allocations: 0.5328 MB / 445.4 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006137/0.4025, allocations: 1.776 MB / 447.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002577/0.4051, allocations: 1.355 MB / 448.5 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.4053, allocations: 152.6 kB / 448.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004345/0.4058, allocations: 200.8 kB / 448.8 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.4176, allocations: 7.965 MB / 456.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001454/0.4178, allocations: 25.41 kB / 456.8 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005593/0.4184, allocations: 90.34 kB / 456.9 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003322/0.4217, allocations: 1.846 MB / 458.8 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01701/0.4388, allocations: 7.167 MB / 465.9 MB, free: 21.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04381/0.4826, allocations: 24.15 MB / 490.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005716/0.4884, allocations: 2.372 MB / 492.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.4898, allocations: 0.8262 MB / 493.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008632/0.4985, allocations: 4.743 MB / 498 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.365e-05/0.4986, allocations: 43.56 kB / 498.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 1.097e-05/0.4986, allocations: 3.984 kB / 498.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.01763/0.5162, allocations: 7.045 MB / 0.4933 GB, free: 6.113 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.5163, allocations: 72.7 kB / 0.4933 GB, free: 6.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005223/0.5216, allocations: 2.621 MB / 0.4959 GB, free: 3.375 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002536/0.5219, allocations: 43.66 kB / 0.4959 GB, free: 3.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.5238, allocations: 2.081 MB / 0.498 GB, free: 1.242 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000796/0.5246, allocations: 0.5779 MB / 0.4985 GB, free: 0.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/0.5262, allocations: 0.776 MB / 0.4993 GB, free: 15.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.5264, allocations: 301.1 kB / 0.4996 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/0.529, allocations: 1.308 MB / 0.5009 GB, free: 14.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004253/0.5332, allocations: 3.447 MB / 0.5042 GB, free: 9.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006911/0.5401, allocations: 5.092 MB / 0.5092 GB, free: 3.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.953e-05/0.5403, allocations: 20 kB / 0.5092 GB, free: 3.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.009933/0.5502, allocations: 4.801 MB / 0.5139 GB, free: 14.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.228e-05/0.5503, allocations: 36.28 kB / 0.5139 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.5505, allocations: 72 kB / 0.514 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005575/0.5511, allocations: 212.6 kB / 0.5142 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003101/0.5542, allocations: 0.9008 MB / 0.5151 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/0.5568, allocations: 2.339 MB / 0.5174 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003214/0.56, allocations: 208 kB / 0.5176 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007016/0.5607, allocations: 232 kB / 0.5178 GB, free: 10.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003386/0.5641, allocations: 1.553 MB / 0.5193 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006031/0.5648, allocations: 221.1 kB / 0.5195 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004159/0.5689, allocations: 1.95 MB / 0.5214 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001125/0.5691, allocations: 27.98 kB / 0.5215 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.5691, allocations: 4.125 kB / 0.5215 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.5691, allocations: 3.984 kB / 0.5215 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.5818, allocations: 5.634 MB / 0.527 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.5818, allocations: 0 / 0.527 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5829, allocations: 239.7 kB / 0.5272 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003303/0.5832, allocations: 103.5 kB / 0.5273 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5833, allocations: 24 kB / 0.5273 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.5856, allocations: 2.069 MB / 0.5293 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5856, allocations: 0 / 0.5293 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/0.5908, allocations: 3.037 MB / 0.5323 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009487/0.5918, allocations: 294.3 kB / 0.5326 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007639/0.5926, allocations: 31.94 kB / 0.5326 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.5939, allocations: 72.09 kB / 0.5327 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.5941, allocations: 72.89 kB / 0.5327 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.5943, allocations: 55.2 kB / 0.5328 GB, free: 10.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003801/0.5981, allocations: 1.691 MB / 0.5345 GB, free: 9.281 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5981, allocations: 0 / 0.5345 GB, free: 9.281 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004167/0.6023, allocations: 0.6641 MB / 0.5351 GB, free: 8.617 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006168/0.6085, allocations: 3.68 MB / 0.5387 GB, free: 4.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009029/0.6175, allocations: 4.557 MB / 0.5431 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.6176, allocations: 4 kB / 0.5431 GB, free: 336 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.6195, allocations: 0.9938 MB / 0.5441 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003225/0.6227, allocations: 383.6 kB / 0.5445 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05582/0.6786, allocations: 29.74 MB / 0.5735 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004104/0.6827, allocations: 2.555 MB / 0.576 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003329/0.6861, allocations: 1.2 MB / 0.5772 GB, free: 9.469 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/0.6882, allocations: 1.296 MB / 0.5785 GB, free: 8.172 MB / 462.1 MB Notification: Performance of SimCode: time 1.823e-06/0.6883, allocations: 0 / 0.5785 GB, free: 8.172 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3336/1.022, allocations: 47.05 MB / 0.6244 GB, free: 133.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/12.3, allocations: 9.219 kB / 0.6244 GB, free: 133.3 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)