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.001578/0.001578, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00159/0.00159, allocations: 210.9 kB / 22.24 MB, free: 5.262 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.812 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.05074/0.05074, allocations: 9.25 MB / 321.7 MB, free: 9.871 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.002093/0.002093, allocations: 67.89 kB / 447.7 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09521, allocations: 55.47 MB / 0.4913 GB, free: 7.078 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01426/0.1095, allocations: 11.86 MB / 0.5029 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007875/0.1173, allocations: 3.937 MB / 0.5068 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1186, allocations: 67.75 kB / 0.5068 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000923/0.1196, allocations: 396.7 kB / 0.5072 GB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.1216, allocations: 0.9244 MB / 0.5081 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.1232, allocations: 0.9754 MB / 0.5091 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002421/0.1256, allocations: 2.214 MB / 0.5112 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002445/0.128, allocations: 1.979 MB / 0.5132 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1907/0.3187, allocations: 1.047 MB / 0.5142 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.3204, allocations: 1.12 MB / 0.5153 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004668/0.3208, allocations: 309 kB / 0.5156 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.3219, allocations: 0.7245 MB / 0.5163 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006597/0.3226, allocations: 0.979 MB / 0.5172 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009957/0.3236, allocations: 1.169 MB / 0.5184 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003996/0.3276, allocations: 3.924 MB / 0.5222 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3276, allocations: 1.094 kB / 0.5222 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3276, allocations: 0 / 0.5222 GB, free: 8.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001262/0.3277, allocations: 1.062 kB / 0.5222 GB, free: 8.516 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.01131/0.339, allocations: 4.211 MB / 0.5263 GB, free: 7.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3391, allocations: 11.31 kB / 0.5263 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005773/0.3397, allocations: 452.8 kB / 0.5268 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.3403, allocations: 308.5 kB / 0.5271 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.3424, allocations: 1.083 MB / 0.5281 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.3425, allocations: 210.7 kB / 0.5283 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003971/0.3429, allocations: 294.4 kB / 0.5286 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007246/0.3501, allocations: 4.745 MB / 0.5332 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/0.3502, allocations: 35.66 kB / 0.5333 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.3505, allocations: 130.5 kB / 0.5334 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004939/0.351, allocations: 431.4 kB / 0.5338 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00616/0.3572, allocations: 3.362 MB / 0.5371 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02219/0.3794, allocations: 20.69 MB / 0.5573 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.384, allocations: 1.436 MB / 0.5587 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.385, allocations: 0.668 MB / 0.5594 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006574/0.3916, allocations: 3.445 MB / 0.5627 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.3917, allocations: 42.66 kB / 0.5628 GB, free: 44 kB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 3.307e-06/0.3917, allocations: 3.125 kB / 0.5628 GB, free: 44 kB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02297/0.4146, allocations: 9.296 MB / 0.5718 GB, free: 7.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.4147, allocations: 64.72 kB / 0.5719 GB, free: 7.223 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.4173, allocations: 1.946 MB / 0.5738 GB, free: 5.277 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.4174, allocations: 49.7 kB / 0.5739 GB, free: 5.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.4187, allocations: 1.806 MB / 0.5756 GB, free: 3.426 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004968/0.4192, allocations: 0.5476 MB / 0.5762 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009981/0.4202, allocations: 0.7508 MB / 0.5769 GB, free: 2.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.4203, allocations: 360.7 kB / 0.5772 GB, free: 1.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001937/0.4223, allocations: 1.222 MB / 0.5784 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/0.426, allocations: 3.408 MB / 0.5817 GB, free: 12.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00627/0.4323, allocations: 5.119 MB / 0.5867 GB, free: 6.211 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.877e-05/0.4323, allocations: 20 kB / 0.5868 GB, free: 6.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007898/0.4402, allocations: 4.821 MB / 0.5915 GB, free: 1.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.598e-05/0.4403, allocations: 39.94 kB / 0.5915 GB, free: 1.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-05/0.4404, allocations: 80 kB / 0.5916 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008842/0.4413, allocations: 364.6 kB / 0.5919 GB, free: 1.355 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/0.444, allocations: 0.8923 MB / 0.5928 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005817/0.4498, allocations: 4.171 MB / 0.5969 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002542/0.4523, allocations: 207.8 kB / 0.5971 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003625/0.4527, allocations: 228 kB / 0.5973 GB, free: 11.88 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.001631/0.4543, allocations: 0.9291 MB / 0.5982 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003528/0.4547, allocations: 194.7 kB / 0.5984 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004568/0.4592, allocations: 2.602 MB / 0.6009 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.4593, allocations: 12 kB / 0.6009 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.4593, allocations: 4 kB / 0.6009 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.4593, allocations: 17.27 kB / 0.601 GB, free: 8.145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.4709, allocations: 6.093 MB / 0.6069 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4709, allocations: 4.031 kB / 0.6069 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.472, allocations: 275.6 kB / 0.6072 GB, free: 1.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006958/0.4727, allocations: 260.6 kB / 0.6074 GB, free: 1.438 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.575e-05/0.4727, allocations: 24 kB / 0.6075 GB, free: 1.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004381/0.4771, allocations: 3.334 MB / 0.6107 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.4771, allocations: 4.875 kB / 0.6107 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005598/0.4827, allocations: 3.897 MB / 0.6145 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004685/0.4832, allocations: 175.4 kB / 0.6147 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.4834, allocations: 35.98 kB / 0.6147 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008521/0.4843, allocations: 99.84 kB / 0.6148 GB, free: 9.699 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.4845, allocations: 104.7 kB / 0.6149 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.574e-05/0.4846, allocations: 36 kB / 0.6149 GB, free: 9.562 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.4862, allocations: 1.092 MB / 0.616 GB, free: 8.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4862, allocations: 3.938 kB / 0.616 GB, free: 8.477 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002598/0.4888, allocations: 0.6289 MB / 0.6166 GB, free: 7.848 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.006016/0.4948, allocations: 4.495 MB / 0.621 GB, free: 3.281 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005396/0.5002, allocations: 3.194 MB / 0.6241 GB, free: 84 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5002, allocations: 0.625 kB / 0.6241 GB, free: 84 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.502, allocations: 1.209 MB / 0.6253 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.5041, allocations: 464.8 kB / 0.6258 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03636/0.5405, allocations: 24.55 MB / 0.6497 GB, free: 2.906 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.5421, allocations: 1.253 MB / 0.651 GB, free: 1.621 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002151/0.5442, allocations: 0.8639 MB / 0.6518 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/0.5458, allocations: 1.058 MB / 0.6528 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of SimCode: time 1.533e-06/0.5458, allocations: 0 / 0.6528 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1566/0.7024, allocations: 47 MB / 0.6987 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.49, allocations: 0 / 0.6987 GB, free: 1.105 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.14924028282985] Failed to read output from testmodel.py, exit status != 0: 14.627312921918929 14.64946513 14.317428772 Calling exit ...