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.008223/0.008222, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001286/0.001286, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.404/1.404, 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.1565/0.1565, allocations: 9.113 MB / 299.7 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.91 kB / 414.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2862, allocations: 51.43 MB / 465.6 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.009656/0.2959, allocations: 10.48 MB / 476.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006898/0.3029, allocations: 2.975 MB / 479 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002002/0.3049, allocations: 42.62 kB / 479.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.3066, allocations: 450.8 kB / 479.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004971/0.3117, allocations: 1.635 MB / 481.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009589/0.3127, allocations: 219 kB / 481.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004406/0.3171, allocations: 3.021 MB / 484.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.319, allocations: 1.186 MB / 485.6 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.321, allocations: 1.101 MB / 486.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002144/0.3231, allocations: 1.548 MB / 488.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000723/0.3239, allocations: 276.5 kB / 488.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002392/0.3263, allocations: 0.8765 MB / 489.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.3279, allocations: 1.398 MB / 490.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002901/0.3308, allocations: 1.856 MB / 492.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008376/0.3392, allocations: 5.744 MB / 498.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3392, allocations: 4 kB / 498.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3393, allocations: 0 / 498.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002024/0.3395, allocations: 0 / 498.4 MB, free: 11.32 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.01438/0.3539, allocations: 5.837 MB / 0.4924 GB, free: 5.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.3539, allocations: 12.03 kB / 0.4924 GB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001405/0.3553, allocations: 0.634 MB / 0.493 GB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007058/0.3624, allocations: 1.851 MB / 0.4948 GB, free: 2.895 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003196/0.3657, allocations: 1.592 MB / 0.4964 GB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3659, allocations: 188.6 kB / 0.4966 GB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007811/0.3666, allocations: 247.7 kB / 0.4968 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.3823, allocations: 9.311 MB / 0.5059 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.3824, allocations: 35.7 kB / 0.5059 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/0.3828, allocations: 115.8 kB / 0.506 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/0.386, allocations: 2.072 MB / 0.5081 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01727/0.4033, allocations: 8.241 MB / 0.5161 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04447/0.4479, allocations: 29.99 MB / 0.5454 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007657/0.4556, allocations: 3.03 MB / 0.5483 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001906/0.4575, allocations: 1.116 MB / 0.5494 GB, free: 9.664 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008476/0.466, allocations: 6.289 MB / 0.5556 GB, free: 2.711 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.4661, allocations: 47.81 kB / 0.5556 GB, free: 2.656 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.138e-06/0.4661, allocations: 0 / 0.5556 GB, free: 2.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02442/0.4905, allocations: 8.357 MB / 0.5638 GB, free: 10.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.4906, allocations: 81.28 kB / 0.5639 GB, free: 10.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005722/0.4964, allocations: 3.082 MB / 0.5669 GB, free: 7.039 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003384/0.4968, allocations: 61.69 kB / 0.5669 GB, free: 6.973 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002187/0.499, allocations: 2.521 MB / 0.5694 GB, free: 4.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/0.5, allocations: 0.8796 MB / 0.5703 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002219/0.5023, allocations: 0.9931 MB / 0.5712 GB, free: 2.539 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5024, allocations: 305.1 kB / 0.5715 GB, free: 2.238 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003123/0.5055, allocations: 1.634 MB / 0.5731 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006675/0.5122, allocations: 4.256 MB / 0.5773 GB, free: 11.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009109/0.5214, allocations: 6.382 MB / 0.5835 GB, free: 3.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/0.5216, allocations: 31.94 kB / 0.5835 GB, free: 3.379 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.2389/0.7605, allocations: 6.494 MB / 0.5899 GB, free: 106.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.422e-05/0.7606, allocations: 45.72 kB / 0.5899 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000176/0.7608, allocations: 89.88 kB / 0.59 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002496/0.7633, allocations: 0.7275 MB / 0.5907 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004028/0.7673, allocations: 1.057 MB / 0.5917 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/0.7817, allocations: 13.59 MB / 0.605 GB, free: 96.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004154/0.7859, allocations: 257.5 kB / 0.6053 GB, free: 96.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009787/0.7869, allocations: 287.8 kB / 0.6055 GB, free: 96.81 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.00379/0.7907, allocations: 1.794 MB / 0.6073 GB, free: 95.96 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007009/0.7915, allocations: 295.3 kB / 0.6076 GB, free: 95.96 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005881/0.7973, allocations: 3.124 MB / 0.6106 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/0.7975, allocations: 41.02 kB / 0.6107 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.7975, allocations: 5.938 kB / 0.6107 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.607e-05/0.7976, allocations: 10.8 kB / 0.6107 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/0.814, allocations: 8.216 MB / 0.6187 GB, free: 91.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-05/0.814, allocations: 2.062 kB / 0.6187 GB, free: 91.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.8153, allocations: 300.2 kB / 0.619 GB, free: 91.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.8167, allocations: 0.576 MB / 0.6196 GB, free: 91.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001982/0.8169, allocations: 47.41 kB / 0.6196 GB, free: 91.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009039/0.8259, allocations: 11.81 MB / 0.6311 GB, free: 82.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.826, allocations: 11.84 kB / 0.6311 GB, free: 82.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006216/0.8322, allocations: 4.707 MB / 0.6357 GB, free: 80.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/0.8331, allocations: 371.7 kB / 0.6361 GB, free: 79.73 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005727/0.8337, allocations: 37.88 kB / 0.6361 GB, free: 79.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.835, allocations: 99.88 kB / 0.6362 GB, free: 79.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003395/0.8353, allocations: 156.1 kB / 0.6364 GB, free: 79.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.8355, allocations: 62.94 kB / 0.6364 GB, free: 79.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002905/0.8384, allocations: 1.969 MB / 0.6384 GB, free: 77.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8384, allocations: 3.938 kB / 0.6384 GB, free: 77.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004967/0.8434, allocations: 0.9085 MB / 0.6392 GB, free: 77.06 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.006694/0.8501, allocations: 5.376 MB / 0.6445 GB, free: 71.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007658/0.8578, allocations: 4.742 MB / 0.6491 GB, free: 66.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.8579, allocations: 0 / 0.6491 GB, free: 66.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002536/0.8604, allocations: 1.997 MB / 0.6511 GB, free: 64.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.8632, allocations: 469 kB / 0.6515 GB, free: 64.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05047/0.9137, allocations: 35.46 MB / 0.6862 GB, free: 25.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003532/0.9173, allocations: 2.929 MB / 0.689 GB, free: 22.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002962/0.9203, allocations: 1.378 MB / 0.6904 GB, free: 20.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002188/0.9225, allocations: 1.628 MB / 0.692 GB, free: 19.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.9225, allocations: 0 / 0.692 GB, free: 19.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1344/1.057, allocations: 61.77 MB / 0.7523 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/20.74, allocations: 6.75 kB / 0.7523 GB, free: 5.621 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)