Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.001587/0.001587, 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.001943/0.001943, 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.531/1.531, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2019/0.2019, allocations: 9.106 MB / 299.5 MB, free: 1.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001619, allocations: 63.89 kB / 362 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1283, allocations: 51.43 MB / 413.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2786/0.4069, allocations: 10.48 MB / 424 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007303/0.4143, allocations: 2.967 MB / 426.9 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002204/0.4165, allocations: 45.28 kB / 427 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.4182, allocations: 450.8 kB / 427.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004695/0.4229, allocations: 1.579 MB / 429 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008108/0.4238, allocations: 217.2 kB / 429.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003857/0.4277, allocations: 3.007 MB / 432.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.4293, allocations: 1.173 MB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.431, allocations: 1.101 MB / 434.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.4336, allocations: 1.541 MB / 436 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.4347, allocations: 278.7 kB / 436.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.4379, allocations: 0.8732 MB / 437.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002878/0.4408, allocations: 1.41 MB / 438.6 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003733/0.4446, allocations: 1.86 MB / 440.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009648/0.4543, allocations: 5.437 MB / 445.9 MB, free: 29.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.4544, allocations: 0 / 445.9 MB, free: 29.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.4544, allocations: 0 / 445.9 MB, free: 29.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002297/0.4546, allocations: 0 / 445.9 MB, free: 29.53 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.0246/0.4792, allocations: 5.733 MB / 451.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/0.4793, allocations: 9.781 kB / 451.6 MB, free: 27.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002326/0.4816, allocations: 0.6346 MB / 452.2 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01337/0.495, allocations: 1.835 MB / 454.1 MB, free: 26.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006335/0.5014, allocations: 1.565 MB / 455.6 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002576/0.5018, allocations: 188.3 kB / 455.8 MB, free: 25.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/0.5031, allocations: 251.4 kB / 456.1 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02889/0.532, allocations: 9.296 MB / 465.4 MB, free: 21.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001628/0.5322, allocations: 33.25 kB / 465.4 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006113/0.5329, allocations: 116.9 kB / 465.5 MB, free: 21.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005808/0.5387, allocations: 2.08 MB / 467.6 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02425/0.563, allocations: 8.244 MB / 475.8 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04902/0.6121, allocations: 30.02 MB / 0.494 GB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008734/0.6209, allocations: 3.038 MB / 0.497 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.6232, allocations: 1.112 MB / 0.4981 GB, free: 2.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009838/0.633, allocations: 6.29 MB / 0.5042 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.6331, allocations: 47.86 kB / 0.5042 GB, free: 11.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 6.162e-06/0.6332, allocations: 0 / 0.5042 GB, free: 11.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=239): time 0.03385/0.667, allocations: 12.32 MB / 0.5163 GB, free: 14.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01354/0.6806, allocations: 9.307 MB / 0.5254 GB, free: 5.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007006/0.6877, allocations: 3.077 MB / 0.5284 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003897/0.6881, allocations: 57.7 kB / 0.5284 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/0.6902, allocations: 2.423 MB / 0.5308 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/0.6914, allocations: 0.8752 MB / 0.5316 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002009/0.6935, allocations: 0.9986 MB / 0.5326 GB, free: 13.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.6936, allocations: 305.1 kB / 0.5329 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.6965, allocations: 1.689 MB / 0.5346 GB, free: 11.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004877/0.7014, allocations: 4.32 MB / 0.5388 GB, free: 5.992 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008431/0.7098, allocations: 6.498 MB / 0.5451 GB, free: 14.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.759e-05/0.7099, allocations: 28 kB / 0.5452 GB, free: 14.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01465/0.7246, allocations: 6.632 MB / 0.5516 GB, free: 7.555 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.7248, allocations: 44 kB / 0.5517 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001809/0.725, allocations: 96.16 kB / 0.5518 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002017/0.727, allocations: 0.7341 MB / 0.5525 GB, free: 6.676 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004002/0.731, allocations: 1.064 MB / 0.5535 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/0.7471, allocations: 13.61 MB / 0.5668 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004765/0.752, allocations: 287.9 kB / 0.5671 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/0.7532, allocations: 298 kB / 0.5674 GB, free: 6.727 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (1,1,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.005592/0.7589, allocations: 1.796 MB / 0.5691 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/0.7601, allocations: 288.2 kB / 0.5694 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007505/0.7676, allocations: 3.435 MB / 0.5728 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005624/0.7732, allocations: 2.969 MB / 0.5757 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.7733, allocations: 11.94 kB / 0.5757 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.601e-05/0.7733, allocations: 7.969 kB / 0.5757 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02073/0.7941, allocations: 10.61 MB / 0.586 GB, free: 3.406 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.7941, allocations: 4 kB / 0.586 GB, free: 3.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.7953, allocations: 280 kB / 0.5863 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/0.7974, allocations: 0.7791 MB / 0.5871 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/0.7976, allocations: 43.98 kB / 0.5871 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2538/1.051, allocations: 13.47 MB / 0.6003 GB, free: 127.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005926/1.057, allocations: 6.003 MB / 0.6061 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007424/1.065, allocations: 5.017 MB / 0.611 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/1.066, allocations: 358.8 kB / 0.6114 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003589/1.066, allocations: 42.48 kB / 0.6114 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/1.067, allocations: 115.9 kB / 0.6115 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004932/1.068, allocations: 159 kB / 0.6117 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.068, allocations: 63.86 kB / 0.6117 GB, free: 121.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003238/1.071, allocations: 1.977 MB / 0.6137 GB, free: 121.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.071, allocations: 0 / 0.6137 GB, free: 121.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005498/1.077, allocations: 0.9889 MB / 0.6146 GB, free: 121 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (159): * Single equations (assignments): 150 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007569/1.084, allocations: 5.69 MB / 0.6202 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01418/1.099, allocations: 7.197 MB / 0.6272 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/1.099, allocations: 0 / 0.6272 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003327/1.102, allocations: 2.175 MB / 0.6293 GB, free: 115.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002808/1.105, allocations: 474 kB / 0.6298 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0621/1.167, allocations: 40.33 MB / 0.6692 GB, free: 83.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004069/1.171, allocations: 2.964 MB / 0.6721 GB, free: 81.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004016/1.175, allocations: 1.381 MB / 0.6734 GB, free: 80.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002485/1.178, allocations: 1.632 MB / 0.675 GB, free: 79.15 MB / 462.1 MB Notification: Performance of SimCode: time 1.733e-06/1.178, allocations: 4 kB / 0.675 GB, free: 79.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/1.304, allocations: 68 MB / 0.7414 GB, free: 13.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/16.22, allocations: 14.14 kB / 0.7414 GB, free: 13.64 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)