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.00136/0.00136, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001483/0.001483, allocations: 211.5 kB / 22.25 MB, free: 5.086 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 8.02 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.04988/0.04988, allocations: 9.243 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.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.002158/0.002158, allocations: 71.89 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1503, allocations: 55.47 MB / 0.4914 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01868/0.1689, allocations: 13.89 MB / 0.505 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.1815, allocations: 4.085 MB / 0.509 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.1851, allocations: 63.75 kB / 0.509 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001993/0.1871, allocations: 404.6 kB / 0.5094 GB, free: 5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004404/0.1915, allocations: 0.9244 MB / 0.5103 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.194, allocations: 0.9793 MB / 0.5113 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004698/0.1987, allocations: 2.222 MB / 0.5134 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3069/0.5056, allocations: 2.048 MB / 0.5154 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.5082, allocations: 1.05 MB / 0.5165 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.5109, allocations: 1.277 MB / 0.5177 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000996/0.5119, allocations: 309.6 kB / 0.518 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.5138, allocations: 0.7508 MB / 0.5187 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.5149, allocations: 0.9712 MB / 0.5197 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002501/0.5174, allocations: 1.483 MB / 0.5211 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00687/0.5243, allocations: 3.9 MB / 0.5249 GB, free: 6.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5243, allocations: 1.031 kB / 0.5249 GB, free: 6.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5243, allocations: 0 / 0.5249 GB, free: 6.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001684/0.5245, allocations: 0 / 0.5249 GB, free: 6.547 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.01754/0.542, allocations: 4.212 MB / 0.5291 GB, free: 5.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.74e-05/0.5421, allocations: 11.31 kB / 0.5291 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001216/0.5433, allocations: 449.7 kB / 0.5295 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000956/0.5442, allocations: 307.5 kB / 0.5298 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.5469, allocations: 1.08 MB / 0.5309 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.5471, allocations: 213 kB / 0.5311 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006555/0.5477, allocations: 290.6 kB / 0.5313 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/0.5602, allocations: 4.741 MB / 0.536 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000197/0.5603, allocations: 44.91 kB / 0.536 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004318/0.5608, allocations: 131.1 kB / 0.5361 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006843/0.5615, allocations: 430.6 kB / 0.5365 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.5717, allocations: 3.368 MB / 0.5398 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03559/0.6073, allocations: 21.49 MB / 0.5608 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005319/0.6127, allocations: 1.443 MB / 0.5622 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.6139, allocations: 0.6678 MB / 0.5629 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008092/0.622, allocations: 3.576 MB / 0.5664 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.622, allocations: 43.56 kB / 0.5664 GB, free: 11.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=102): time 3.116e-06/0.622, allocations: 1.031 kB / 0.5664 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02617/0.6482, allocations: 9.302 MB / 0.5755 GB, free: 2.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.107e-05/0.6482, allocations: 68.72 kB / 0.5756 GB, free: 2.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003018/0.6513, allocations: 1.811 MB / 0.5773 GB, free: 264 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001417/0.6514, allocations: 45.7 kB / 0.5774 GB, free: 212 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/0.653, allocations: 1.816 MB / 0.5791 GB, free: 14.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006068/0.6537, allocations: 0.5479 MB / 0.5797 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/0.6547, allocations: 0.7469 MB / 0.5804 GB, free: 13.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.6549, allocations: 361.9 kB / 0.5808 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001969/0.6569, allocations: 1.222 MB / 0.582 GB, free: 11.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00422/0.6611, allocations: 3.408 MB / 0.5853 GB, free: 7.109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00805/0.6692, allocations: 5.132 MB / 0.5903 GB, free: 1.219 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-05/0.6692, allocations: 20 kB / 0.5903 GB, free: 1.199 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.01052/0.6798, allocations: 4.821 MB / 0.595 GB, free: 12.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.578e-05/0.6798, allocations: 40 kB / 0.5951 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/0.6799, allocations: 76 kB / 0.5951 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009863/0.6809, allocations: 370.5 kB / 0.5955 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003407/0.6843, allocations: 0.8933 MB / 0.5964 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007158/0.6915, allocations: 4.193 MB / 0.6004 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/0.6952, allocations: 211.8 kB / 0.6007 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008617/0.696, allocations: 231.9 kB / 0.6009 GB, free: 6.859 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.002429/0.6984, allocations: 0.936 MB / 0.6018 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.6989, allocations: 198.7 kB / 0.602 GB, free: 5.785 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004998/0.7039, allocations: 2.591 MB / 0.6045 GB, free: 3.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.704, allocations: 15.94 kB / 0.6045 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.704, allocations: 4.562 kB / 0.6045 GB, free: 3.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.704, allocations: 7.922 kB / 0.6045 GB, free: 3.152 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01425/0.7182, allocations: 6.384 MB / 0.6108 GB, free: 12.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.7182, allocations: 0 / 0.6108 GB, free: 12.67 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.7194, allocations: 271.6 kB / 0.611 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007254/0.7201, allocations: 259.4 kB / 0.6113 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.7202, allocations: 28.88 kB / 0.6113 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004904/0.7251, allocations: 3.363 MB / 0.6146 GB, free: 8.656 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.7251, allocations: 8.062 kB / 0.6146 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006792/0.7319, allocations: 3.897 MB / 0.6184 GB, free: 4.684 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008276/0.7328, allocations: 178.7 kB / 0.6186 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.733, allocations: 32 kB / 0.6186 GB, free: 4.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009546/0.734, allocations: 103.8 kB / 0.6187 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002726/0.7343, allocations: 105.2 kB / 0.6188 GB, free: 4.273 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.151e-05/0.7344, allocations: 37.38 kB / 0.6188 GB, free: 4.238 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.7369, allocations: 1.088 MB / 0.6199 GB, free: 3.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7369, allocations: 0 / 0.6199 GB, free: 3.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003914/0.7408, allocations: 0.6289 MB / 0.6205 GB, free: 2.531 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.006713/0.7475, allocations: 4.489 MB / 0.6249 GB, free: 13.97 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006497/0.754, allocations: 3.193 MB / 0.628 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.754, allocations: 1.5 kB / 0.628 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.756, allocations: 1.213 MB / 0.6292 GB, free: 9.543 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.7585, allocations: 466.5 kB / 0.6296 GB, free: 9.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04511/0.8036, allocations: 24.57 MB / 0.6536 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002108/0.8057, allocations: 1.824 MB / 0.6554 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002363/0.8081, allocations: 0.8628 MB / 0.6563 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/0.81, allocations: 1.058 MB / 0.6573 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of SimCode: time 1.553e-06/0.81, allocations: 0 / 0.6573 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1226/0.9325, allocations: 48.89 MB / 0.705 GB, free: 9.113 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.4/18.33, allocations: 14.91 kB / 0.705 GB, free: 9.102 MB / 0.545 GB " [Timeout remaining time 642] (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: 21.307424298000115] Failed to read output from testmodel.py, exit status != 0: 18.47377144100028 18.500175513 17.97009741 Calling exit ...