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.00178/0.00178, allocations: 105.7 kB / 16.45 MB, free: 6.508 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.002205/0.002205, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.456/1.456, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.06402/0.06402, allocations: 9.225 MB / 318.1 MB, free: 11.24 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.0025/0.0025, allocations: 63.91 kB / 442.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1069, allocations: 55.43 MB / 498 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01244/0.1194, allocations: 10.53 MB / 0.4966 GB, free: 460 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007169/0.1265, allocations: 3.01 MB / 0.4995 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.128, allocations: 51.81 kB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.1293, allocations: 464.7 kB / 0.5 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004503/0.1338, allocations: 1.626 MB / 0.5016 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007221/0.1345, allocations: 219.6 kB / 0.5018 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004243/0.1388, allocations: 3.008 MB / 0.5048 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.1402, allocations: 0.9911 MB / 0.5057 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001482/0.1417, allocations: 1.121 MB / 0.5068 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002254/0.1439, allocations: 1.67 MB / 0.5084 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006561/0.1446, allocations: 276 kB / 0.5087 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.1463, allocations: 0.9245 MB / 0.5096 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001461/0.1478, allocations: 1.421 MB / 0.511 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1946/0.3424, allocations: 1.844 MB / 0.5128 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006623/0.349, allocations: 5.703 MB / 0.5184 GB, free: 9.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.349, allocations: 0 / 0.5184 GB, free: 9.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.349, allocations: 4.5 kB / 0.5184 GB, free: 9.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001933/0.3492, allocations: 0 / 0.5184 GB, free: 9.305 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.01562/0.3649, allocations: 5.872 MB / 0.5241 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3649, allocations: 9.438 kB / 0.5241 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009979/0.3659, allocations: 0.6303 MB / 0.5247 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007401/0.3733, allocations: 1.861 MB / 0.5265 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.3776, allocations: 1.582 MB / 0.5281 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.3779, allocations: 189.6 kB / 0.5283 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/0.3791, allocations: 243.8 kB / 0.5285 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01819/0.3972, allocations: 9.307 MB / 0.5376 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.717e-05/0.3973, allocations: 29.64 kB / 0.5376 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003916/0.3977, allocations: 114.8 kB / 0.5377 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003182/0.4009, allocations: 2.082 MB / 0.5398 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01633/0.4173, allocations: 8.252 MB / 0.5478 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04563/0.4629, allocations: 29.98 MB / 0.5771 GB, free: 1.891 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008043/0.4709, allocations: 2.917 MB / 0.5799 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.4729, allocations: 1.043 MB / 0.581 GB, free: 13.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01017/0.4831, allocations: 6.298 MB / 0.5871 GB, free: 6.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.4831, allocations: 43.88 kB / 0.5872 GB, free: 6.859 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 5.32e-06/0.4831, allocations: 4 kB / 0.5872 GB, free: 6.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02527/0.5084, allocations: 8.339 MB / 0.5953 GB, free: 14.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.5085, allocations: 77.41 kB / 0.5954 GB, free: 14.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005357/0.5138, allocations: 3.089 MB / 0.5984 GB, free: 11.31 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003549/0.5142, allocations: 57.7 kB / 0.5985 GB, free: 11.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002097/0.5163, allocations: 2.519 MB / 0.6009 GB, free: 8.738 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.5174, allocations: 0.8852 MB / 0.6018 GB, free: 7.867 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/0.5189, allocations: 0.9944 MB / 0.6027 GB, free: 6.867 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5191, allocations: 305.1 kB / 0.603 GB, free: 6.566 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003042/0.5221, allocations: 1.638 MB / 0.6046 GB, free: 4.922 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/0.5273, allocations: 4.253 MB / 0.6088 GB, free: 15.43 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00841/0.5358, allocations: 6.386 MB / 0.615 GB, free: 8.152 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-05/0.5358, allocations: 24 kB / 0.615 GB, free: 8.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.0131/0.5489, allocations: 6.477 MB / 0.6214 GB, free: 1.902 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.202e-05/0.549, allocations: 44 kB / 0.6214 GB, free: 1.859 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/0.5491, allocations: 92 kB / 0.6215 GB, free: 1.762 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.5512, allocations: 0.7226 MB / 0.6222 GB, free: 1.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003755/0.5549, allocations: 1.061 MB / 0.6232 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01606/0.571, allocations: 13.61 MB / 0.6365 GB, free: 1.668 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003535/0.5745, allocations: 259.7 kB / 0.6368 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006204/0.5751, allocations: 296 kB / 0.6371 GB, free: 1.129 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.003122/0.5783, allocations: 1.784 MB / 0.6388 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005687/0.5788, allocations: 294 kB / 0.6391 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006014/0.5848, allocations: 3.115 MB / 0.6421 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001259/0.585, allocations: 37.77 kB / 0.6422 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.585, allocations: 7.938 kB / 0.6422 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/0.585, allocations: 11.95 kB / 0.6422 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/0.602, allocations: 8.195 MB / 0.6502 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.602, allocations: 4 kB / 0.6502 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.6032, allocations: 299.6 kB / 0.6505 GB, free: 3.234 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001619/0.6048, allocations: 0.5798 MB / 0.651 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000164/0.605, allocations: 47.92 kB / 0.6511 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/0.6179, allocations: 11.8 MB / 0.6626 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6179, allocations: 12 kB / 0.6626 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007711/0.6256, allocations: 4.692 MB / 0.6672 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007652/0.6264, allocations: 367.2 kB / 0.6676 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004077/0.6268, allocations: 36 kB / 0.6676 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.6278, allocations: 99.83 kB / 0.6677 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/0.6281, allocations: 149.7 kB / 0.6678 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.6283, allocations: 67.34 kB / 0.6679 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003192/0.6315, allocations: 1.969 MB / 0.6698 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6315, allocations: 0 / 0.6698 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004016/0.6355, allocations: 0.8906 MB / 0.6707 GB, free: 13.75 MB / 0.5137 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.007925/0.6434, allocations: 5.364 MB / 0.6759 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007764/0.6512, allocations: 4.578 MB / 0.6804 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6512, allocations: 0 / 0.6804 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.6539, allocations: 1.899 MB / 0.6822 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/0.6563, allocations: 485.3 kB / 0.6827 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05755/0.7139, allocations: 35.42 MB / 0.7173 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003613/0.7175, allocations: 2.929 MB / 0.7202 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003221/0.7207, allocations: 1.378 MB / 0.7215 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002312/0.723, allocations: 1.632 MB / 0.7231 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of SimCode: time 1.563e-06/0.723, allocations: 0 / 0.7231 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3311/1.054, allocations: 62.14 MB / 0.7838 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.17/21.22, allocations: 7.109 kB / 0.7838 GB, free: 166.4 MB / 0.5606 GB " [Timeout remaining time 639] (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: 24.05695289299183] Failed to read output from testmodel.py, exit status != 0: 21.35965853500238 21.38004505 21.02711324 Calling exit ...