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.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.001434/0.001434, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001717/0.001717, allocations: 211.7 kB / 22.24 MB, free: 5.242 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.809 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.04907/0.04907, allocations: 9.238 MB / 321.7 MB, free: 9.84 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,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"}) [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.00211/0.00211, allocations: 64.19 kB / 447.7 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1088, allocations: 55.47 MB / 0.4913 GB, free: 7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01256/0.1214, allocations: 9.159 MB / 0.5003 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007223/0.1286, allocations: 2.87 MB / 0.5031 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.13, allocations: 51.81 kB / 0.5031 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.1311, allocations: 472.7 kB / 0.5036 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004003/0.1351, allocations: 1.626 MB / 0.5052 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1357, allocations: 219.6 kB / 0.5054 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003467/0.1392, allocations: 3.006 MB / 0.5083 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.1406, allocations: 0.9602 MB / 0.5093 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.1423, allocations: 1.124 MB / 0.5104 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002204/0.1445, allocations: 1.591 MB / 0.5119 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005038/0.145, allocations: 276 kB / 0.5122 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.1464, allocations: 0.8075 MB / 0.513 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2762/0.4226, allocations: 1.415 MB / 0.5143 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001614/0.4242, allocations: 1.31 MB / 0.5156 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006188/0.4304, allocations: 5.719 MB / 0.5212 GB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4304, allocations: 1.719 kB / 0.5212 GB, free: 9.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4304, allocations: 0 / 0.5212 GB, free: 9.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001705/0.4306, allocations: 1.156 kB / 0.5212 GB, free: 9.691 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.0159/0.4465, allocations: 5.802 MB / 0.5269 GB, free: 8.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4465, allocations: 9.156 kB / 0.5269 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001021/0.4476, allocations: 0.6387 MB / 0.5275 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006677/0.4542, allocations: 1.857 MB / 0.5293 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004223/0.4585, allocations: 1.53 MB / 0.5308 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/0.4587, allocations: 193 kB / 0.531 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008689/0.4595, allocations: 249.2 kB / 0.5312 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01515/0.4747, allocations: 9.302 MB / 0.5403 GB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.77e-05/0.4748, allocations: 28.55 kB / 0.5404 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000354/0.4751, allocations: 123.9 kB / 0.5405 GB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/0.4781, allocations: 2.074 MB / 0.5425 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.4932, allocations: 8.222 MB / 0.5505 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04706/0.5403, allocations: 28.44 MB / 0.5783 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007801/0.5481, allocations: 2.472 MB / 0.5807 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.55, allocations: 1.031 MB / 0.5817 GB, free: 15.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007924/0.5579, allocations: 3.443 MB / 0.5851 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.96e-05/0.558, allocations: 51.88 kB / 0.5851 GB, free: 12.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.989e-06/0.558, allocations: 0 / 0.5851 GB, free: 12.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02447/0.5824, allocations: 8.116 MB / 0.5931 GB, free: 4.273 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/0.5825, allocations: 77.41 kB / 0.5931 GB, free: 4.184 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006397/0.5889, allocations: 3.236 MB / 0.5963 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003896/0.5893, allocations: 56.2 kB / 0.5963 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002228/0.5916, allocations: 2.525 MB / 0.5988 GB, free: 14.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/0.5929, allocations: 0.878 MB / 0.5997 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/0.5944, allocations: 0.9957 MB / 0.6006 GB, free: 12.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5945, allocations: 309 kB / 0.6009 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002837/0.5974, allocations: 1.63 MB / 0.6025 GB, free: 10.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005036/0.6024, allocations: 4.257 MB / 0.6067 GB, free: 5.047 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008302/0.6107, allocations: 6.383 MB / 0.6129 GB, free: 13.76 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.284e-05/0.6108, allocations: 28 kB / 0.613 GB, free: 13.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01179/0.6225, allocations: 6.475 MB / 0.6193 GB, free: 7.445 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.49e-05/0.6226, allocations: 44 kB / 0.6193 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001073/0.6227, allocations: 92 kB / 0.6194 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.6246, allocations: 0.7213 MB / 0.6201 GB, free: 6.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003578/0.6282, allocations: 1.049 MB / 0.6211 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/0.6443, allocations: 12.99 MB / 0.6338 GB, free: 7.984 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/0.6484, allocations: 263.8 kB / 0.6341 GB, free: 7.727 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00094/0.6493, allocations: 294.8 kB / 0.6343 GB, free: 7.441 MB / 478.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.003604/0.6529, allocations: 1.785 MB / 0.6361 GB, free: 5.645 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000609/0.6535, allocations: 298.8 kB / 0.6364 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005528/0.659, allocations: 3.123 MB / 0.6394 GB, free: 2.199 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/0.6591, allocations: 31.98 kB / 0.6395 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.048e-05/0.6592, allocations: 11.98 kB / 0.6395 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/0.6592, allocations: 7.969 kB / 0.6395 GB, free: 2.148 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.6748, allocations: 7.797 MB / 0.6471 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.6748, allocations: 4.469 kB / 0.6471 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.676, allocations: 303.6 kB / 0.6474 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.6775, allocations: 0.5655 MB / 0.6479 GB, free: 9.367 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.6777, allocations: 51.59 kB / 0.648 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.6904, allocations: 11.23 MB / 0.6589 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.6904, allocations: 8.125 kB / 0.659 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008359/0.6987, allocations: 4.685 MB / 0.6635 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.6997, allocations: 286.1 kB / 0.6638 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004/0.7001, allocations: 46.56 kB / 0.6638 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.7012, allocations: 95.89 kB / 0.6639 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.7015, allocations: 153.6 kB / 0.6641 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.7016, allocations: 67.92 kB / 0.6642 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003292/0.7049, allocations: 1.969 MB / 0.6661 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7049, allocations: 4 kB / 0.6661 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004128/0.709, allocations: 0.8975 MB / 0.667 GB, free: 5.266 MB / 0.4981 GB 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.008194/0.7172, allocations: 5.348 MB / 0.6722 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008437/0.7257, allocations: 4.594 MB / 0.6767 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.118e-06/0.7257, allocations: 0 / 0.6767 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003335/0.729, allocations: 1.892 MB / 0.6785 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00317/0.7322, allocations: 477 kB / 0.679 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05972/0.7919, allocations: 35.51 MB / 0.7136 GB, free: 1.516 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2296/1.022, allocations: 2.371 MB / 0.716 GB, free: 184 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003226/1.025, allocations: 1.377 MB / 0.7173 GB, free: 184 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/1.027, allocations: 1.628 MB / 0.7189 GB, free: 184 MB / 0.545 GB Notification: Performance of SimCode: time 8.52e-07/1.027, allocations: 0 / 0.7189 GB, free: 184 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1256/1.152, allocations: 62.55 MB / 0.78 GB, free: 141.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.1/18.25, allocations: 14.91 kB / 0.78 GB, free: 141.9 MB / 0.545 GB " [Timeout remaining time 642] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.11481771012768] Failed to read output from testmodel.py, exit status != 0: 18.41661665495485 18.427541397 17.994618152 Calling exit ...