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.002053/0.002053, 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.00318/0.00318, allocations: 193.9 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.563/1.563, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2118/0.2118, allocations: 9.105 MB / 299.5 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 63.84 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1135, allocations: 51.43 MB / 413.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.009505/0.1231, allocations: 8.332 MB / 421.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2122/0.3353, allocations: 2.58 MB / 424.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.3366, allocations: 34.16 kB / 424.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008303/0.3374, allocations: 357.4 kB / 424.8 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003242/0.3407, allocations: 1.393 MB / 426.2 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.3411, allocations: 128 kB / 426.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002404/0.3435, allocations: 2.486 MB / 428.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/0.3447, allocations: 0.8987 MB / 429.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009936/0.3457, allocations: 0.8887 MB / 430.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.3469, allocations: 1.293 MB / 431.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000318/0.3473, allocations: 229.2 kB / 432.1 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.3486, allocations: 0.8352 MB / 432.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007987/0.3494, allocations: 1.207 MB / 434.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.3505, allocations: 1.553 MB / 435.7 MB, free: 33.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003743/0.3542, allocations: 4.71 MB / 440.4 MB, free: 31.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3542, allocations: 2.906 kB / 440.4 MB, free: 31.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3542, allocations: 0 / 440.4 MB, free: 31.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.338e-05/0.3543, allocations: 0 / 440.4 MB, free: 31.85 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.007511/0.3618, allocations: 3.833 MB / 444.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.3619, allocations: 9.406 kB / 444.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000538/0.3624, allocations: 0.5268 MB / 444.8 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006091/0.3685, allocations: 1.769 MB / 446.5 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/0.3706, allocations: 1.34 MB / 447.9 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.3707, allocations: 153.4 kB / 448 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.3711, allocations: 199.9 kB / 448.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009709/0.3808, allocations: 7.902 MB / 456.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.496e-05/0.3809, allocations: 28.28 kB / 456.1 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.3812, allocations: 91.78 kB / 456.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002909/0.3841, allocations: 1.845 MB / 458.1 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01684/0.401, allocations: 7.123 MB / 465.2 MB, free: 22.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03494/0.436, allocations: 23.91 MB / 489.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00451/0.4405, allocations: 2.374 MB / 491.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009878/0.4416, allocations: 0.819 MB / 492.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006008/0.4476, allocations: 4.601 MB / 496.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.4476, allocations: 43.56 kB / 496.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=129): time 2.865e-06/0.4476, allocations: 0 / 496.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01468/0.4623, allocations: 7.05 MB / 0.4922 GB, free: 7.074 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.4624, allocations: 64.72 kB / 0.4922 GB, free: 6.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00365/0.4661, allocations: 2.604 MB / 0.4948 GB, free: 4.359 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/0.4662, allocations: 47.81 kB / 0.4948 GB, free: 4.309 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/0.4676, allocations: 2.057 MB / 0.4968 GB, free: 2.246 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004813/0.4681, allocations: 0.5674 MB / 0.4974 GB, free: 1.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009951/0.4691, allocations: 0.777 MB / 0.4982 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4692, allocations: 301.1 kB / 0.4984 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/0.4713, allocations: 1.276 MB / 0.4997 GB, free: 15.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003593/0.4749, allocations: 3.378 MB / 0.503 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006216/0.4811, allocations: 4.991 MB / 0.5079 GB, free: 4.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-05/0.4812, allocations: 24 kB / 0.5079 GB, free: 4.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008401/0.4896, allocations: 4.835 MB / 0.5126 GB, free: 52 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.4896, allocations: 36 kB / 0.5126 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.038e-05/0.4897, allocations: 76.05 kB / 0.5127 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008697/0.4906, allocations: 335.8 kB / 0.513 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/0.4931, allocations: 0.8538 MB / 0.5139 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004569/0.4977, allocations: 3.65 MB / 0.5174 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002634/0.5003, allocations: 198 kB / 0.5176 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003522/0.5007, allocations: 224 kB / 0.5178 GB, free: 10.56 MB / 398.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.5035, allocations: 1.55 MB / 0.5193 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004091/0.5039, allocations: 229.1 kB / 0.5196 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003418/0.5073, allocations: 2.005 MB / 0.5215 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001094/0.5074, allocations: 29.86 kB / 0.5216 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5074, allocations: 4 kB / 0.5216 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.5075, allocations: 7.969 kB / 0.5216 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0098/0.5173, allocations: 5.669 MB / 0.5271 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.5173, allocations: 12.09 kB / 0.5271 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008208/0.5181, allocations: 207.6 kB / 0.5273 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006891/0.5188, allocations: 246.8 kB / 0.5275 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.941e-05/0.5189, allocations: 31.98 kB / 0.5276 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.5224, allocations: 2.95 MB / 0.5305 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.5224, allocations: 4 kB / 0.5305 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004577/0.527, allocations: 3.087 MB / 0.5335 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007169/0.5277, allocations: 294.4 kB / 0.5338 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.528, allocations: 34.95 kB / 0.5338 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007719/0.5288, allocations: 59.94 kB / 0.5338 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.529, allocations: 92.75 kB / 0.5339 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.708e-05/0.5291, allocations: 40 kB / 0.534 GB, free: 9.707 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002511/0.5316, allocations: 1.683 MB / 0.5356 GB, free: 8.008 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5316, allocations: 4 kB / 0.5356 GB, free: 8.004 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002876/0.5345, allocations: 0.6821 MB / 0.5363 GB, free: 7.324 MB / 414.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.004773/0.5393, allocations: 3.722 MB / 0.5399 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007798/0.5471, allocations: 4.371 MB / 0.5442 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.5472, allocations: 0 / 0.5442 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.5487, allocations: 1.027 MB / 0.5452 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.5508, allocations: 392 kB / 0.5456 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04306/0.5939, allocations: 29.63 MB / 0.5745 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.5967, allocations: 2.562 MB / 0.577 GB, free: 9.633 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002906/0.5996, allocations: 1.168 MB / 0.5781 GB, free: 8.457 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/0.6015, allocations: 1.296 MB / 0.5794 GB, free: 7.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.433e-06/0.6015, allocations: 4 kB / 0.5794 GB, free: 7.156 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.461/1.063, allocations: 47.61 MB / 0.6259 GB, free: 133.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.7, allocations: 7.906 kB / 0.6259 GB, free: 133.1 MB / 462.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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrab_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)