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.001488/0.001488, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001532/0.001532, allocations: 218.1 kB / 22.26 MB, free: 5.125 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.996 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.0491/0.0491, allocations: 9.239 MB / 321.7 MB, free: 10.05 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.002062/0.002062, allocations: 71.89 kB / 447.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.107, allocations: 55.46 MB / 0.4914 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01255/0.1195, allocations: 10.57 MB / 0.5017 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006455/0.126, allocations: 3.025 MB / 0.5047 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.1271, allocations: 51.81 kB / 0.5047 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.1283, allocations: 464.8 kB / 0.5052 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003783/0.1321, allocations: 1.63 MB / 0.5068 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006892/0.1328, allocations: 223.6 kB / 0.507 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.1369, allocations: 3 MB / 0.5099 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001577/0.1385, allocations: 0.9798 MB / 0.5109 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001664/0.1402, allocations: 1.124 MB / 0.512 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.1426, allocations: 1.681 MB / 0.5136 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006125/0.1432, allocations: 276 kB / 0.5139 GB, free: 400 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2106/0.3538, allocations: 0.9218 MB / 0.5148 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.3552, allocations: 1.416 MB / 0.5162 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.3568, allocations: 1.842 MB / 0.518 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005987/0.3628, allocations: 5.701 MB / 0.5235 GB, free: 8.426 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3628, allocations: 2.938 kB / 0.5235 GB, free: 8.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3628, allocations: 0 / 0.5235 GB, free: 8.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001124/0.3629, allocations: 0 / 0.5235 GB, free: 8.426 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.0139/0.3768, allocations: 5.806 MB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3768, allocations: 9.062 kB / 0.5292 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009004/0.3777, allocations: 0.6318 MB / 0.5298 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006502/0.3842, allocations: 1.864 MB / 0.5316 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004594/0.3888, allocations: 1.517 MB / 0.5331 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.3891, allocations: 192.7 kB / 0.5333 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008534/0.3899, allocations: 246.3 kB / 0.5335 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01736/0.4073, allocations: 9.299 MB / 0.5426 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.4074, allocations: 31.05 kB / 0.5427 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003912/0.4078, allocations: 119 kB / 0.5428 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002867/0.4106, allocations: 2.074 MB / 0.5448 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01613/0.4268, allocations: 8.239 MB / 0.5528 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04413/0.4709, allocations: 29.96 MB / 0.5821 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008018/0.4789, allocations: 2.471 MB / 0.5845 GB, free: 12.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.481, allocations: 1.03 MB / 0.5855 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008138/0.4891, allocations: 3.752 MB / 0.5892 GB, free: 7.707 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.4892, allocations: 47.88 kB / 0.5892 GB, free: 7.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 3.737e-06/0.4892, allocations: 0 / 0.5892 GB, free: 7.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02284/0.512, allocations: 8.112 MB / 0.5971 GB, free: 15.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.5121, allocations: 73.41 kB / 0.5972 GB, free: 15.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004921/0.517, allocations: 3.093 MB / 0.6002 GB, free: 12.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002268/0.5172, allocations: 56.83 kB / 0.6003 GB, free: 12.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/0.5193, allocations: 2.52 MB / 0.6028 GB, free: 9.812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/0.5203, allocations: 0.88 MB / 0.6036 GB, free: 8.945 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/0.5218, allocations: 0.9917 MB / 0.6046 GB, free: 7.945 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.522, allocations: 305.1 kB / 0.6049 GB, free: 7.645 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002871/0.5248, allocations: 1.639 MB / 0.6065 GB, free: 6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005091/0.5299, allocations: 4.252 MB / 0.6106 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0084/0.5383, allocations: 6.389 MB / 0.6169 GB, free: 9.223 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-05/0.5384, allocations: 28 kB / 0.6169 GB, free: 9.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01232/0.5507, allocations: 6.476 MB / 0.6232 GB, free: 2.898 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.413e-05/0.5508, allocations: 44 kB / 0.6233 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.5509, allocations: 93.56 kB / 0.6233 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.5529, allocations: 0.7245 MB / 0.6241 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003409/0.5563, allocations: 1.053 MB / 0.6251 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/0.5723, allocations: 13.09 MB / 0.6379 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003901/0.5762, allocations: 262.8 kB / 0.6381 GB, free: 3.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000628/0.5768, allocations: 284 kB / 0.6384 GB, free: 2.793 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.003388/0.5802, allocations: 1.796 MB / 0.6401 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/0.5807, allocations: 294 kB / 0.6404 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005755/0.5865, allocations: 3.112 MB / 0.6435 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/0.5866, allocations: 39.97 kB / 0.6435 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.5866, allocations: 5.828 kB / 0.6435 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.171e-05/0.5867, allocations: 11.97 kB / 0.6435 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.6021, allocations: 8.154 MB / 0.6515 GB, free: 5.246 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.6021, allocations: 3.938 kB / 0.6515 GB, free: 5.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.6033, allocations: 295.6 kB / 0.6518 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.6048, allocations: 0.5821 MB / 0.6523 GB, free: 4.355 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.605, allocations: 43.94 kB / 0.6524 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.6178, allocations: 11.28 MB / 0.6634 GB, free: 8.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.136e-05/0.6178, allocations: 15.98 kB / 0.6634 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007995/0.6258, allocations: 4.69 MB / 0.668 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.6268, allocations: 294 kB / 0.6683 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003851/0.6272, allocations: 36 kB / 0.6683 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.6282, allocations: 95.89 kB / 0.6684 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003218/0.6286, allocations: 157.6 kB / 0.6685 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.6287, allocations: 71.11 kB / 0.6686 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003557/0.6322, allocations: 1.965 MB / 0.6705 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6322, allocations: 0 / 0.6705 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004651/0.6369, allocations: 0.8906 MB / 0.6714 GB, free: 196 kB / 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.008186/0.6451, allocations: 5.353 MB / 0.6766 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007948/0.653, allocations: 4.582 MB / 0.6811 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.653, allocations: 0 / 0.6811 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002808/0.6558, allocations: 1.9 MB / 0.683 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/0.6585, allocations: 474.5 kB / 0.6834 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05872/0.7172, allocations: 35.51 MB / 0.7181 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/0.7209, allocations: 2.929 MB / 0.721 GB, free: 9.461 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003323/0.7242, allocations: 1.385 MB / 0.7223 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002255/0.7265, allocations: 1.624 MB / 0.7239 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/0.7265, allocations: 0 / 0.7239 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3347/1.061, allocations: 66.29 MB / 0.7886 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.45/23.51, allocations: 6.5 kB / 0.7886 GB, free: 163.1 MB / 0.5606 GB " [Timeout remaining time 636] (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: 26.312969482998597] Failed to read output from testmodel.py, exit status != 0: 23.671576704000472 23.691742332 23.324968914 Calling exit ...