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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007311/0.0007311, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9115/0.9115, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.02742/0.02742, allocations: 7.119 MB / 266.3 MB, free: 6.316 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.063e-05/2.205e-05, allocations: 5.234 kB / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.006926/0.006948, allocations: 9.157 MB / 401.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004732/0.01168, allocations: 2.881 MB / 404.4 MB, free: 7.898 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.01291, allocations: 51.81 kB / 404.5 MB, free: 7.848 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009594/0.01387, allocations: 464.6 kB / 404.9 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002987/0.01685, allocations: 1.695 MB / 406.6 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.0174, allocations: 207.6 kB / 406.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003111/0.02051, allocations: 3.08 MB / 409.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.022, allocations: 0.9834 MB / 410.9 MB, free: 1.391 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1435/0.1655, allocations: 1.679 MB / 412.6 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002215/0.1677, allocations: 1.512 MB / 414.1 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007474/0.1685, allocations: 275.9 kB / 414.3 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.1701, allocations: 0.8713 MB / 415.2 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00123/0.1713, allocations: 1.455 MB / 416.7 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001593/0.1729, allocations: 0.9957 MB / 417.7 MB, free: 16.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006626/0.1795, allocations: 5.678 MB / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1795, allocations: 0.9688 kB / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1795, allocations: 0 / 423.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001931/0.1797, allocations: 1.219 kB / 423.4 MB, free: 15.53 MB / 330.7 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.01191/0.1916, allocations: 5.797 MB / 429.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1917, allocations: 10.16 kB / 429.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001097/0.1928, allocations: 0.6326 MB / 429.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004119/0.1969, allocations: 1.952 MB / 431.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003037/0.1999, allocations: 1.502 MB / 433.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.2001, allocations: 188.8 kB / 433.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/0.2008, allocations: 245.5 kB / 433.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.2126, allocations: 9.295 MB / 443 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-05/0.2127, allocations: 33.83 kB / 443 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003443/0.213, allocations: 119.2 kB / 443.1 MB, free: 4.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001835/0.2149, allocations: 2.071 MB / 445.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.2274, allocations: 8.176 MB / 453.4 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03442/0.2618, allocations: 28.46 MB / 481.8 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00496/0.2668, allocations: 2.598 MB / 484.4 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.2681, allocations: 1.029 MB / 485.4 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005602/0.2737, allocations: 3.464 MB / 488.9 MB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.2738, allocations: 55.86 kB / 489 MB, free: 7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 5.681e-06/0.2738, allocations: 0 / 489 MB, free: 7 MB / 378.7 MB Notification: Performance of matching and sorting (n=239): time 0.02014/0.2939, allocations: 12.15 MB / 0.4894 GB, free: 10.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005588/0.2995, allocations: 6.516 MB / 0.4957 GB, free: 4.137 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004029/0.3035, allocations: 3.209 MB / 0.4989 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002984/0.3038, allocations: 61.7 kB / 0.4989 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.305, allocations: 2.504 MB / 0.5014 GB, free: 14.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007342/0.3058, allocations: 0.8915 MB / 0.5022 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.3068, allocations: 0.9894 MB / 0.5032 GB, free: 12.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.606e-05/0.3069, allocations: 305.2 kB / 0.5035 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.3091, allocations: 1.685 MB / 0.5051 GB, free: 10.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003097/0.3122, allocations: 4.31 MB / 0.5094 GB, free: 4.926 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006036/0.3182, allocations: 6.482 MB / 0.5157 GB, free: 13.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.152e-05/0.3183, allocations: 28 kB / 0.5157 GB, free: 13.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.009921/0.3282, allocations: 6.611 MB / 0.5222 GB, free: 6.551 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/0.3282, allocations: 44 kB / 0.5222 GB, free: 6.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.639e-05/0.3283, allocations: 88 kB / 0.5223 GB, free: 6.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.3297, allocations: 0.7176 MB / 0.523 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/0.3322, allocations: 1.068 MB / 0.524 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.3443, allocations: 12.96 MB / 0.5367 GB, free: 7.094 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002799/0.3471, allocations: 291.9 kB / 0.537 GB, free: 6.809 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006858/0.3478, allocations: 295.9 kB / 0.5372 GB, free: 6.52 MB / 442.7 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.002963/0.3508, allocations: 1.803 MB / 0.539 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004486/0.3512, allocations: 301.9 kB / 0.5393 GB, free: 4.41 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004187/0.3554, allocations: 3.388 MB / 0.5426 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003682/0.3591, allocations: 2.922 MB / 0.5455 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.3591, allocations: 8.062 kB / 0.5455 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.3591, allocations: 15.95 kB / 0.5455 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01538/0.3745, allocations: 9.933 MB / 0.5552 GB, free: 3.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.3745, allocations: 4.375 kB / 0.5552 GB, free: 3.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006646/0.3752, allocations: 279.6 kB / 0.5555 GB, free: 3.664 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3764, allocations: 0.7312 MB / 0.5562 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001844/0.3766, allocations: 47.98 kB / 0.5562 GB, free: 2.875 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.3868, allocations: 12.84 MB / 0.5687 GB, free: 5.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1574/0.5442, allocations: 5.707 MB / 0.5743 GB, free: 149.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/0.5503, allocations: 4.985 MB / 0.5792 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006132/0.5509, allocations: 293.3 kB / 0.5795 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/0.5511, allocations: 42.45 kB / 0.5795 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006315/0.5518, allocations: 118.8 kB / 0.5796 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.552, allocations: 167 kB / 0.5798 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.283e-05/0.5521, allocations: 67.25 kB / 0.5798 GB, free: 149.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002279/0.5544, allocations: 1.941 MB / 0.5817 GB, free: 149.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5544, allocations: 1.094 kB / 0.5817 GB, free: 149.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002732/0.5571, allocations: 0.9767 MB / 0.5827 GB, free: 149.3 MB / 474.7 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.004869/0.562, allocations: 5.644 MB / 0.5882 GB, free: 147.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003784/0.5658, allocations: 4.691 MB / 0.5928 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5658, allocations: 0 / 0.5928 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.5672, allocations: 2.073 MB / 0.5948 GB, free: 144.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.5684, allocations: 484 kB / 0.5953 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02807/0.5965, allocations: 35.94 MB / 0.6304 GB, free: 110.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.5982, allocations: 2.413 MB / 0.6327 GB, free: 108.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001649/0.5998, allocations: 1.384 MB / 0.6341 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/0.601, allocations: 1.637 MB / 0.6357 GB, free: 105.5 MB / 474.7 MB Notification: Performance of SimCode: time 8.42e-07/0.601, allocations: 4 kB / 0.6357 GB, free: 105.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0666/0.6676, allocations: 66.06 MB / 0.7002 GB, free: 40.01 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.89, allocations: 0 / 0.7002 GB, free: 40.01 MB / 474.7 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.753917593508959] Failed to read output from testmodel.py, exit status != 0: 11.016953722573817 11.025211577 10.844118788 Calling exit ...