Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.001689/0.001689, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002081/0.002081, allocations: 213.8 kB / 22.25 MB, free: 5.242 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.781 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.04915/0.04915, allocations: 9.239 MB / 321.7 MB, free: 9.812 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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.002118/0.002118, allocations: 71.89 kB / 447.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1105, allocations: 55.47 MB / 0.4913 GB, free: 6.965 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.008792/0.1193, allocations: 6.223 MB / 0.4974 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.1245, allocations: 2.262 MB / 0.4996 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008047/0.1253, allocations: 31.94 kB / 0.4997 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008003/0.1261, allocations: 318 kB / 0.5 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003143/0.1292, allocations: 1.311 MB / 0.5012 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.1295, allocations: 79.84 kB / 0.5013 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002602/0.1321, allocations: 2.152 MB / 0.5034 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008819/0.133, allocations: 0.5828 MB / 0.504 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009807/0.134, allocations: 0.7627 MB / 0.5047 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.1356, allocations: 1.199 MB / 0.5059 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003326/0.1359, allocations: 200 kB / 0.5061 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.1373, allocations: 0.7294 MB / 0.5068 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.1383, allocations: 1.075 MB / 0.5079 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.1394, allocations: 0.9352 MB / 0.5088 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005306/0.1447, allocations: 4.478 MB / 0.5131 GB, free: 0.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1447, allocations: 0 / 0.5131 GB, free: 0.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1447, allocations: 3.938 kB / 0.5131 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.79e-05/0.1448, allocations: 0 / 0.5131 GB, free: 0.5391 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.2249/0.3696, allocations: 3.36 MB / 0.5164 GB, free: 24.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.3697, allocations: 10.19 kB / 0.5164 GB, free: 24.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000536/0.3702, allocations: 479.8 kB / 0.5169 GB, free: 24.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006493/0.3767, allocations: 1.735 MB / 0.5186 GB, free: 24.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/0.3792, allocations: 1.152 MB / 0.5197 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.29e-05/0.3793, allocations: 125.3 kB / 0.5198 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003534/0.3797, allocations: 166.2 kB / 0.52 GB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/0.3907, allocations: 7.199 MB / 0.527 GB, free: 21.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.256e-05/0.3908, allocations: 25.08 kB / 0.527 GB, free: 21.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.3911, allocations: 72.67 kB / 0.5271 GB, free: 21.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003331/0.3944, allocations: 1.735 MB / 0.5288 GB, free: 21.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/0.4083, allocations: 6.58 MB / 0.5352 GB, free: 19.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02976/0.4381, allocations: 19.88 MB / 0.5547 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003774/0.4419, allocations: 1.497 MB / 0.5561 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.4431, allocations: 0.6289 MB / 0.5567 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005225/0.4483, allocations: 2.084 MB / 0.5588 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.4484, allocations: 39.22 kB / 0.5588 GB, free: 12.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 4.088e-06/0.4484, allocations: 3.938 kB / 0.5588 GB, free: 12.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01239/0.4608, allocations: 5.417 MB / 0.5641 GB, free: 7.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.4608, allocations: 72.34 kB / 0.5642 GB, free: 7.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004617/0.4655, allocations: 2.386 MB / 0.5665 GB, free: 4.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.4656, allocations: 49.62 kB / 0.5665 GB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001794/0.4674, allocations: 1.908 MB / 0.5684 GB, free: 2.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006184/0.468, allocations: 480.2 kB / 0.5689 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/0.4693, allocations: 0.6673 MB / 0.5695 GB, free: 1.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.4694, allocations: 305.1 kB / 0.5698 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/0.4715, allocations: 1.099 MB / 0.5709 GB, free: 384 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00421/0.4757, allocations: 2.963 MB / 0.5738 GB, free: 12.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007053/0.4828, allocations: 4.366 MB / 0.578 GB, free: 7.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/0.4829, allocations: 16.88 kB / 0.5781 GB, free: 7.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.008779/0.4917, allocations: 4.147 MB / 0.5821 GB, free: 3.051 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.097e-05/0.4918, allocations: 35.94 kB / 0.5821 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001369/0.4919, allocations: 68 kB / 0.5822 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006055/0.4925, allocations: 208.7 kB / 0.5824 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002401/0.4949, allocations: 0.73 MB / 0.5831 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003664/0.4986, allocations: 2.58 MB / 0.5856 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.5009, allocations: 167.8 kB / 0.5858 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004289/0.5013, allocations: 200 kB / 0.586 GB, free: 14.96 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * Array equations: 4 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0026/0.5039, allocations: 1.429 MB / 0.5874 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004508/0.5044, allocations: 196.7 kB / 0.5876 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003195/0.5076, allocations: 1.607 MB / 0.5891 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001094/0.5077, allocations: 27.92 kB / 0.5892 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5077, allocations: 0 / 0.5892 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.5077, allocations: 11.97 kB / 0.5892 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.5177, allocations: 4.576 MB / 0.5936 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.5177, allocations: 4.516 kB / 0.5936 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006946/0.5184, allocations: 160.9 kB / 0.5938 GB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/0.5188, allocations: 117 kB / 0.5939 GB, free: 6.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.98e-05/0.5189, allocations: 28.56 kB / 0.5939 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.5215, allocations: 2.049 MB / 0.5959 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5215, allocations: 3.938 kB / 0.5959 GB, free: 4.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00427/0.5258, allocations: 2.561 MB / 0.5984 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006697/0.5264, allocations: 198.6 kB / 0.5986 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003925/0.5268, allocations: 20 kB / 0.5987 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008293/0.5277, allocations: 63.8 kB / 0.5987 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.5278, allocations: 68.81 kB / 0.5988 GB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-05/0.5279, allocations: 39.98 kB / 0.5988 GB, free: 1.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.5308, allocations: 1.476 MB / 0.6003 GB, free: 24 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5308, allocations: 0 / 0.6003 GB, free: 24 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002948/0.5337, allocations: 0.5546 MB / 0.6008 GB, free: 15.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * Array equations: 4 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005178/0.5389, allocations: 3.189 MB / 0.6039 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005103/0.544, allocations: 2.559 MB / 0.6064 GB, free: 9.652 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.544, allocations: 0 / 0.6064 GB, free: 9.652 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.5454, allocations: 0.7789 MB / 0.6072 GB, free: 8.863 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/0.5476, allocations: 338.5 kB / 0.6075 GB, free: 8.539 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04172/0.5893, allocations: 23.69 MB / 0.6306 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003037/0.5923, allocations: 1.787 MB / 0.6324 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002545/0.5949, allocations: 1.039 MB / 0.6334 GB, free: 11.51 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/0.5965, allocations: 1.097 MB / 0.6345 GB, free: 10.41 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5965, allocations: 0 / 0.6345 GB, free: 10.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09276/0.6893, allocations: 40.11 MB / 0.6736 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.28, allocations: 3.938 kB / 0.6736 GB, free: 2.746 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.Pendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.09569776803255] Failed to read output from testmodel.py, exit status != 0: 14.419751642271876 14.449008345 14.299218183 Calling exit ...