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.001943/0.001943, allocations: 107.6 kB / 16.45 MB, free: 6.453 MB / 14.72 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.002162/0.002162, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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 1.439/1.439, allocations: 230.6 MB / 252.8 MB, free: 8.984 MB / 206.1 MB " [Timeout remaining time 178] 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.04821/0.04821, allocations: 9.219 MB / 318.1 MB, free: 11.21 MB / 254.1 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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 63.89 kB / 442.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1027, allocations: 55.43 MB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.01244/0.1152, allocations: 10.51 MB / 0.4966 GB, free: 464 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006678/0.1218, allocations: 3.014 MB / 0.4995 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.1235, allocations: 55.75 kB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.1252, allocations: 464.8 kB / 0.5 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004778/0.1299, allocations: 1.63 MB / 0.5016 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009625/0.1309, allocations: 215.7 kB / 0.5018 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004882/0.1358, allocations: 3.003 MB / 0.5047 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001868/0.1376, allocations: 0.9949 MB / 0.5057 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.1398, allocations: 1.117 MB / 0.5068 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/0.143, allocations: 1.67 MB / 0.5084 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009656/0.1439, allocations: 280 kB / 0.5087 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.1461, allocations: 0.9245 MB / 0.5096 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001787/0.1479, allocations: 1.421 MB / 0.511 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2051/0.3529, allocations: 1.845 MB / 0.5128 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007481/0.3604, allocations: 5.697 MB / 0.5184 GB, free: 9.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3604, allocations: 0 / 0.5184 GB, free: 9.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3604, allocations: 1.906 kB / 0.5184 GB, free: 9.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002284/0.3606, allocations: 3.469 kB / 0.5184 GB, free: 9.234 MB / 382.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.01657/0.3772, allocations: 5.874 MB / 0.5241 GB, free: 7.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3772, allocations: 9.625 kB / 0.5241 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001063/0.3783, allocations: 0.6292 MB / 0.5247 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007005/0.3853, allocations: 1.863 MB / 0.5265 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003999/0.3893, allocations: 1.576 MB / 0.5281 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002603/0.3896, allocations: 190.4 kB / 0.5283 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000993/0.3906, allocations: 253 kB / 0.5285 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01661/0.4072, allocations: 9.307 MB / 0.5376 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/0.4073, allocations: 33.92 kB / 0.5376 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005426/0.4078, allocations: 116.3 kB / 0.5377 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003369/0.4112, allocations: 2.074 MB / 0.5398 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/0.427, allocations: 8.238 MB / 0.5478 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04699/0.474, allocations: 30 MB / 0.5771 GB, free: 1.902 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008275/0.4822, allocations: 2.915 MB / 0.5799 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/0.4842, allocations: 1.037 MB / 0.581 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009429/0.4936, allocations: 6.286 MB / 0.5871 GB, free: 6.938 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.4937, allocations: 63.22 kB / 0.5872 GB, free: 6.875 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.89e-06/0.4937, allocations: 0 / 0.5872 GB, free: 6.875 MB / 430.1 MB Notification: Performance of matching and sorting (n=239): time 0.03316/0.5269, allocations: 12.36 MB / 0.5992 GB, free: 10.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01209/0.539, allocations: 9.291 MB / 0.6083 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005513/0.5445, allocations: 3.085 MB / 0.6113 GB, free: 13.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003465/0.5448, allocations: 57.7 kB / 0.6114 GB, free: 13.61 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002293/0.5471, allocations: 2.529 MB / 0.6138 GB, free: 11.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/0.5484, allocations: 0.903 MB / 0.6147 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00181/0.5502, allocations: 1.004 MB / 0.6157 GB, free: 9.184 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5503, allocations: 305.1 kB / 0.616 GB, free: 8.883 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/0.5535, allocations: 1.689 MB / 0.6176 GB, free: 7.188 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0057/0.5592, allocations: 4.318 MB / 0.6219 GB, free: 1.629 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009027/0.5683, allocations: 6.5 MB / 0.6282 GB, free: 10.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.836e-05/0.5684, allocations: 28 kB / 0.6282 GB, free: 10.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01405/0.5824, allocations: 6.63 MB / 0.6347 GB, free: 3.75 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/0.5825, allocations: 44 kB / 0.6347 GB, free: 3.707 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/0.5826, allocations: 96.12 kB / 0.6348 GB, free: 3.613 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.5847, allocations: 0.7267 MB / 0.6355 GB, free: 2.871 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003735/0.5884, allocations: 1.064 MB / 0.6366 GB, free: 1.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/0.6045, allocations: 13.63 MB / 0.6499 GB, free: 3.496 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003793/0.6083, allocations: 294.1 kB / 0.6502 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007771/0.6091, allocations: 292 kB / 0.6505 GB, free: 2.926 MB / 494.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.003483/0.6126, allocations: 1.798 MB / 0.6522 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006135/0.6132, allocations: 302 kB / 0.6525 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006566/0.6198, allocations: 3.408 MB / 0.6558 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005392/0.6252, allocations: 2.945 MB / 0.6587 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.11e-05/0.6252, allocations: 11.98 kB / 0.6587 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/0.6252, allocations: 7.969 kB / 0.6587 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/0.6449, allocations: 10.46 MB / 0.6689 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.6449, allocations: 4 kB / 0.6689 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.6461, allocations: 271.6 kB / 0.6692 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00226/0.6483, allocations: 0.784 MB / 0.67 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002347/0.6485, allocations: 51.97 kB / 0.67 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/0.6649, allocations: 13.48 MB / 0.6832 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007651/0.6725, allocations: 5.986 MB / 0.689 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00877/0.6813, allocations: 5.005 MB / 0.6939 GB, free: 5.168 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009671/0.6822, allocations: 371.1 kB / 0.6943 GB, free: 4.785 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005136/0.6828, allocations: 40 kB / 0.6943 GB, free: 4.746 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.684, allocations: 119.1 kB / 0.6944 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/0.6844, allocations: 165.6 kB / 0.6946 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/0.6846, allocations: 63.98 kB / 0.6946 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003869/0.6885, allocations: 1.972 MB / 0.6966 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6885, allocations: 4 kB / 0.6966 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005414/0.6939, allocations: 0.9764 MB / 0.6975 GB, free: 1.453 MB / 0.5294 GB 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.00928/0.7032, allocations: 5.681 MB / 0.7031 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00838/0.7115, allocations: 4.707 MB / 0.7077 GB, free: 6.945 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/0.7115, allocations: 0 / 0.7077 GB, free: 6.945 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00359/0.7151, allocations: 2.089 MB / 0.7097 GB, free: 4.789 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/0.7177, allocations: 476.6 kB / 0.7102 GB, free: 4.336 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2542/0.9719, allocations: 36.16 MB / 0.7455 GB, free: 166.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003859/0.9758, allocations: 2.957 MB / 0.7484 GB, free: 165.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002944/0.9787, allocations: 1.383 MB / 0.7497 GB, free: 165.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/0.9809, allocations: 1.633 MB / 0.7513 GB, free: 164 MB / 0.545 GB Notification: Performance of SimCode: time 1.353e-06/0.9809, allocations: 4 kB / 0.7513 GB, free: 164 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/1.093, allocations: 65.58 MB / 0.8154 GB, free: 102.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.94/22.04, allocations: 3.172 kB / 0.8154 GB, free: 102.3 MB / 0.545 GB " [Timeout remaining time 638] (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: 24.847646421010722] Failed to read output from testmodel.py, exit status != 0: 22.179509380002855 22.197564149 21.833655016 Calling exit ...