Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.007075/0.007075, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001648/0.001648, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1504/0.1504, allocations: 9.104 MB / 299.6 MB, free: 1.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 67.84 kB / 414.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2373, allocations: 51.42 MB / 465.6 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01097/0.2483, allocations: 10.48 MB / 476.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005854/0.2542, allocations: 2.974 MB / 479 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.2557, allocations: 46.28 kB / 479.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000945/0.2566, allocations: 447.4 kB / 479.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003349/0.26, allocations: 1.584 MB / 481.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005819/0.2606, allocations: 223.1 kB / 481.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003277/0.2639, allocations: 3.02 MB / 484.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.2652, allocations: 1.184 MB / 485.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.2665, allocations: 1.093 MB / 486.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.2682, allocations: 1.544 MB / 488.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004827/0.2687, allocations: 281.4 kB / 488.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.2702, allocations: 0.8719 MB / 489.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009728/0.2711, allocations: 1.397 MB / 490.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.2725, allocations: 1.86 MB / 492.6 MB, free: 24 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007412/0.28, allocations: 5.746 MB / 498.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.28, allocations: 0 / 498.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.28, allocations: 0 / 498.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001133/0.2801, allocations: 0 / 498.3 MB, free: 11.4 MB / 366.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.01338/0.2935, allocations: 5.837 MB / 0.4923 GB, free: 5.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2935, allocations: 12.03 kB / 0.4923 GB, free: 5.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008672/0.2944, allocations: 0.634 MB / 0.493 GB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006966/0.3014, allocations: 1.858 MB / 0.4948 GB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002777/0.3042, allocations: 1.584 MB / 0.4963 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.3044, allocations: 184.6 kB / 0.4965 GB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004825/0.3049, allocations: 247.8 kB / 0.4967 GB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01469/0.3196, allocations: 9.315 MB / 0.5058 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.017e-05/0.3197, allocations: 31.7 kB / 0.5059 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.32, allocations: 119.8 kB / 0.506 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003347/0.3234, allocations: 2.076 MB / 0.508 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01611/0.3395, allocations: 8.233 MB / 0.516 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04228/0.3818, allocations: 30 MB / 0.5453 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007875/0.3897, allocations: 3.034 MB / 0.5483 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001904/0.3917, allocations: 1.112 MB / 0.5494 GB, free: 9.742 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008705/0.4004, allocations: 6.293 MB / 0.5555 GB, free: 2.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4005, allocations: 43.88 kB / 0.5556 GB, free: 2.734 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.238e-06/0.4005, allocations: 4 kB / 0.5556 GB, free: 2.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02296/0.4234, allocations: 8.349 MB / 0.5637 GB, free: 10.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.4235, allocations: 81.34 kB / 0.5638 GB, free: 10.22 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004534/0.4281, allocations: 3.085 MB / 0.5668 GB, free: 7.117 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000161/0.4283, allocations: 61.69 kB / 0.5669 GB, free: 7.051 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/0.4302, allocations: 2.521 MB / 0.5693 GB, free: 4.508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008189/0.431, allocations: 0.8835 MB / 0.5702 GB, free: 3.617 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/0.4324, allocations: 0.9853 MB / 0.5712 GB, free: 2.621 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4325, allocations: 305.1 kB / 0.5715 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/0.4352, allocations: 1.634 MB / 0.5731 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00493/0.4401, allocations: 4.26 MB / 0.5772 GB, free: 11.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008632/0.4488, allocations: 6.386 MB / 0.5835 GB, free: 3.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.424e-05/0.4489, allocations: 28 kB / 0.5835 GB, free: 3.453 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.201/0.6499, allocations: 6.49 MB / 0.5898 GB, free: 106.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/0.6501, allocations: 44.75 kB / 0.5899 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001428/0.6502, allocations: 90.34 kB / 0.5899 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/0.6523, allocations: 0.7332 MB / 0.5907 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003606/0.6559, allocations: 1.053 MB / 0.5917 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/0.6691, allocations: 13.6 MB / 0.605 GB, free: 97.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/0.6725, allocations: 261.4 kB / 0.6052 GB, free: 97.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005723/0.6731, allocations: 292.5 kB / 0.6055 GB, free: 96.98 MB / 462.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 (583): * Single equations (assignments): 574 * 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,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002561/0.6756, allocations: 1.785 MB / 0.6072 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004141/0.6761, allocations: 298.2 kB / 0.6075 GB, free: 96.13 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004881/0.681, allocations: 3.126 MB / 0.6106 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/0.6811, allocations: 34.3 kB / 0.6106 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.6811, allocations: 7.734 kB / 0.6106 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.961e-05/0.6811, allocations: 9.938 kB / 0.6106 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.6935, allocations: 8.217 MB / 0.6187 GB, free: 91.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.6936, allocations: 5.062 kB / 0.6187 GB, free: 91.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.6946, allocations: 300.3 kB / 0.6189 GB, free: 91.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.6959, allocations: 0.5627 MB / 0.6195 GB, free: 91.61 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.696, allocations: 51.45 kB / 0.6195 GB, free: 91.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008256/0.7043, allocations: 11.81 MB / 0.6311 GB, free: 82.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.7043, allocations: 7.906 kB / 0.6311 GB, free: 82.44 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005661/0.71, allocations: 4.71 MB / 0.6357 GB, free: 80.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006393/0.7107, allocations: 369.5 kB / 0.636 GB, free: 79.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003119/0.711, allocations: 42.11 kB / 0.6361 GB, free: 79.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009675/0.712, allocations: 100 kB / 0.6362 GB, free: 79.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.7122, allocations: 144.6 kB / 0.6363 GB, free: 79.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.7124, allocations: 63.3 kB / 0.6364 GB, free: 79.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002438/0.7148, allocations: 1.977 MB / 0.6383 GB, free: 78.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7148, allocations: 0 / 0.6383 GB, free: 78.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003831/0.7186, allocations: 0.9124 MB / 0.6392 GB, free: 77.13 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (170): * Single equations (assignments): 161 * 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%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005623/0.7243, allocations: 5.372 MB / 0.6444 GB, free: 71.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006183/0.7305, allocations: 4.745 MB / 0.6491 GB, free: 66.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.7305, allocations: 0 / 0.6491 GB, free: 66.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/0.7325, allocations: 1.995 MB / 0.651 GB, free: 64.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.7349, allocations: 469.8 kB / 0.6515 GB, free: 64.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04283/0.7777, allocations: 35.47 MB / 0.6861 GB, free: 25.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002327/0.7801, allocations: 2.921 MB / 0.689 GB, free: 22.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002503/0.7826, allocations: 1.374 MB / 0.6903 GB, free: 20.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/0.7841, allocations: 1.628 MB / 0.6919 GB, free: 19.21 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.7841, allocations: 0 / 0.6919 GB, free: 19.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/0.9038, allocations: 61.76 MB / 0.7522 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.46/20.37, allocations: 6.875 kB / 0.7522 GB, free: 5.711 MB / 0.4981 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_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.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)