Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.001352/0.001352, allocations: 102.8 kB / 16.45 MB, free: 6.449 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.001421/0.001421, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.04865/0.04865, allocations: 9.227 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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.001997/0.001997, allocations: 75.88 kB / 442.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1247, allocations: 55.42 MB / 498 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01673/0.1414, allocations: 13.85 MB / 0.4998 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1523, allocations: 4.061 MB / 0.5038 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005112/0.1574, allocations: 63.75 kB / 0.5038 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.1597, allocations: 400.6 kB / 0.5042 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004066/0.1637, allocations: 0.9283 MB / 0.5051 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.1662, allocations: 0.9754 MB / 0.5061 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004201/0.1704, allocations: 2.218 MB / 0.5083 GB, free: 4.453 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.1735, allocations: 2.142 MB / 0.5103 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.175, allocations: 1.047 MB / 0.5114 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2554/0.4304, allocations: 1.271 MB / 0.5126 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001178/0.4316, allocations: 311.6 kB / 0.5129 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001703/0.4333, allocations: 0.7469 MB / 0.5136 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008233/0.4341, allocations: 0.9688 MB / 0.5146 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.4356, allocations: 1.49 MB / 0.516 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005288/0.4409, allocations: 3.894 MB / 0.5198 GB, free: 7.711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4409, allocations: 0.7188 kB / 0.5198 GB, free: 7.711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4409, allocations: 1.312 kB / 0.5198 GB, free: 7.711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001791/0.4411, allocations: 1.094 kB / 0.5198 GB, free: 7.711 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01536/0.4565, allocations: 4.288 MB / 0.524 GB, free: 6.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.4565, allocations: 11.95 kB / 0.524 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008675/0.4574, allocations: 451.8 kB / 0.5245 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008252/0.4582, allocations: 309.7 kB / 0.5248 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.4604, allocations: 1.147 MB / 0.5259 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.4606, allocations: 213.6 kB / 0.5261 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005045/0.4611, allocations: 293.7 kB / 0.5264 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.4715, allocations: 4.737 MB / 0.531 GB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.4716, allocations: 39.36 kB / 0.531 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002852/0.4719, allocations: 131.1 kB / 0.5312 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006048/0.4725, allocations: 432.7 kB / 0.5316 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007469/0.48, allocations: 3.367 MB / 0.5349 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02587/0.5058, allocations: 21.6 MB / 0.556 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005688/0.5115, allocations: 1.879 MB / 0.5578 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.5128, allocations: 0.6747 MB / 0.5584 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008077/0.5208, allocations: 5.556 MB / 0.5639 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.5209, allocations: 43.44 kB / 0.5639 GB, free: 11.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 2.434e-06/0.5209, allocations: 0 / 0.5639 GB, free: 11.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02517/0.5461, allocations: 9.604 MB / 0.5733 GB, free: 2.094 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.5461, allocations: 64.72 kB / 0.5734 GB, free: 2.016 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002794/0.5489, allocations: 1.815 MB / 0.5751 GB, free: 208 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.5491, allocations: 45.7 kB / 0.5752 GB, free: 156 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.5504, allocations: 1.809 MB / 0.5769 GB, free: 14.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005656/0.551, allocations: 0.5531 MB / 0.5775 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.5521, allocations: 0.7501 MB / 0.5782 GB, free: 13.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.5523, allocations: 361.9 kB / 0.5786 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001926/0.5542, allocations: 1.218 MB / 0.5797 GB, free: 11.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003813/0.558, allocations: 3.413 MB / 0.5831 GB, free: 7.023 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007607/0.5656, allocations: 5.121 MB / 0.5881 GB, free: 1.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.287e-05/0.5657, allocations: 24 kB / 0.5881 GB, free: 1.113 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.009478/0.5752, allocations: 4.817 MB / 0.5928 GB, free: 12.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.5752, allocations: 36 kB / 0.5928 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.185e-05/0.5753, allocations: 80 kB / 0.5929 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009656/0.5763, allocations: 365.3 kB / 0.5933 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/0.5798, allocations: 0.8952 MB / 0.5941 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006308/0.5861, allocations: 4.295 MB / 0.5983 GB, free: 7.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/0.5889, allocations: 211.8 kB / 0.5985 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000516/0.5894, allocations: 236 kB / 0.5988 GB, free: 6.637 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001747/0.5912, allocations: 0.9253 MB / 0.5997 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/0.5916, allocations: 198.7 kB / 0.5999 GB, free: 5.578 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.596, allocations: 2.595 MB / 0.6024 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.596, allocations: 12 kB / 0.6024 GB, free: 2.973 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.596, allocations: 7.984 kB / 0.6024 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.596, allocations: 7.922 kB / 0.6024 GB, free: 2.957 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.6079, allocations: 6.415 MB / 0.6087 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.6079, allocations: 4 kB / 0.6087 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.609, allocations: 271.6 kB / 0.6089 GB, free: 12.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007133/0.6097, allocations: 265 kB / 0.6092 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.6098, allocations: 26.25 kB / 0.6092 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004394/0.6142, allocations: 3.47 MB / 0.6126 GB, free: 8.328 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.6142, allocations: 4 kB / 0.6126 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005786/0.62, allocations: 3.904 MB / 0.6164 GB, free: 4.355 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008054/0.6208, allocations: 255.8 kB / 0.6167 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.621, allocations: 28 kB / 0.6167 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009003/0.6219, allocations: 107.8 kB / 0.6168 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.6222, allocations: 96.75 kB / 0.6169 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.679e-05/0.6223, allocations: 36 kB / 0.6169 GB, free: 3.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001831/0.6241, allocations: 1.085 MB / 0.618 GB, free: 2.746 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6241, allocations: 0 / 0.618 GB, free: 2.746 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003162/0.6273, allocations: 0.6328 MB / 0.6186 GB, free: 2.113 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006141/0.6334, allocations: 4.499 MB / 0.623 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00593/0.6393, allocations: 3.187 MB / 0.6261 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/0.6393, allocations: 0 / 0.6261 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.6413, allocations: 1.205 MB / 0.6273 GB, free: 9.145 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002346/0.6436, allocations: 444.9 kB / 0.6277 GB, free: 8.742 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03927/0.6829, allocations: 24.54 MB / 0.6517 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001891/0.6848, allocations: 1.826 MB / 0.6535 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00219/0.687, allocations: 0.8589 MB / 0.6543 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001677/0.6886, allocations: 1.054 MB / 0.6553 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of SimCode: time 1.153e-06/0.6886, allocations: 0 / 0.6553 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09979/0.7884, allocations: 45.85 MB / 0.7001 GB, free: 11.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.39, allocations: 0 / 0.7001 GB, free: 11.76 MB / 0.545 GB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.MeasureDemo_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.356884627006366] Failed to read output from testmodel.py, exit status != 0: 15.505225533997873 15.524238465 15.079300069 Calling exit ...