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.001355/0.001355, allocations: 108.9 kB / 16.46 MB, free: 6.508 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.001394/0.001394, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.479/1.479, allocations: 230.6 MB / 252.8 MB, free: 9.105 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.04861/0.04861, allocations: 9.232 MB / 318.1 MB, free: 11.22 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.001931/0.001931, allocations: 59.91 kB / 442.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1357, allocations: 55.43 MB / 498 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.009477/0.1451, allocations: 7.037 MB / 0.4932 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00589/0.151, allocations: 2.406 MB / 0.4955 GB, free: 1.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.1523, allocations: 39.81 kB / 0.4955 GB, free: 1.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009483/0.1533, allocations: 322 kB / 0.4959 GB, free: 1.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.1571, allocations: 1.296 MB / 0.4971 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.1574, allocations: 75.91 kB / 0.4972 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00366/0.1611, allocations: 2.147 MB / 0.4993 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.1622, allocations: 0.5983 MB / 0.4999 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.1636, allocations: 0.7743 MB / 0.5006 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00185/0.1654, allocations: 1.23 MB / 0.5018 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004074/0.1658, allocations: 200 kB / 0.502 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.1675, allocations: 0.8542 MB / 0.5029 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.1687, allocations: 1.075 MB / 0.5039 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001502/0.1702, allocations: 1.34 MB / 0.5052 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006468/0.1767, allocations: 4.478 MB / 0.5096 GB, free: 3.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.1767, allocations: 3.984 kB / 0.5096 GB, free: 3.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1767, allocations: 0 / 0.5096 GB, free: 3.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.1768, allocations: 0 / 0.5096 GB, free: 3.055 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.2585/0.4353, allocations: 3.438 MB / 0.5129 GB, free: 25.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4354, allocations: 10.72 kB / 0.513 GB, free: 25.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008109/0.4362, allocations: 487.9 kB / 0.5134 GB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007156/0.4433, allocations: 1.727 MB / 0.5151 GB, free: 25.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002917/0.4463, allocations: 1.201 MB / 0.5163 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.4464, allocations: 120.5 kB / 0.5164 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004815/0.4469, allocations: 162 kB / 0.5166 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.4596, allocations: 7.203 MB / 0.5236 GB, free: 23.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-05/0.4596, allocations: 22.8 kB / 0.5236 GB, free: 23.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.4599, allocations: 77.91 kB / 0.5237 GB, free: 23.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003467/0.4634, allocations: 1.738 MB / 0.5254 GB, free: 22.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/0.4785, allocations: 6.58 MB / 0.5318 GB, free: 20.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02998/0.5085, allocations: 21.16 MB / 0.5525 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003546/0.512, allocations: 1.961 MB / 0.5544 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009627/0.513, allocations: 0.6333 MB / 0.555 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00568/0.5187, allocations: 3.279 MB / 0.5582 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/0.5187, allocations: 47.2 kB / 0.5583 GB, free: 12.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.617e-06/0.5187, allocations: 0 / 0.5583 GB, free: 12.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01269/0.5314, allocations: 5.559 MB / 0.5637 GB, free: 6.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.5315, allocations: 68.34 kB / 0.5637 GB, free: 6.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003984/0.5355, allocations: 2.282 MB / 0.566 GB, free: 4.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.5356, allocations: 41.7 kB / 0.566 GB, free: 4.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00176/0.5374, allocations: 1.9 MB / 0.5679 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006176/0.538, allocations: 489.9 kB / 0.5683 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/0.539, allocations: 0.6595 MB / 0.569 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.5392, allocations: 301.1 kB / 0.5693 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/0.5412, allocations: 1.107 MB / 0.5704 GB, free: 15.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/0.5452, allocations: 2.964 MB / 0.5732 GB, free: 11.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006774/0.5519, allocations: 4.377 MB / 0.5775 GB, free: 6.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.285e-05/0.552, allocations: 20 kB / 0.5775 GB, free: 6.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.009228/0.5612, allocations: 4.143 MB / 0.5816 GB, free: 2.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.189e-05/0.5613, allocations: 32 kB / 0.5816 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.699e-05/0.5614, allocations: 66.75 kB / 0.5817 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005842/0.562, allocations: 214.1 kB / 0.5819 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00253/0.5645, allocations: 0.7252 MB / 0.5826 GB, free: 1.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.5681, allocations: 2.709 MB / 0.5852 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002797/0.5709, allocations: 159.9 kB / 0.5854 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005019/0.5714, allocations: 196 kB / 0.5856 GB, free: 14.01 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.003734/0.5751, allocations: 1.432 MB / 0.587 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006658/0.5758, allocations: 194.7 kB / 0.5872 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.5794, allocations: 1.611 MB / 0.5887 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001552/0.5796, allocations: 28.58 kB / 0.5888 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5796, allocations: 4 kB / 0.5888 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.5796, allocations: 7.969 kB / 0.5888 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.5896, allocations: 4.865 MB / 0.5935 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.5896, allocations: 4 kB / 0.5935 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006717/0.5903, allocations: 151.8 kB / 0.5937 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003989/0.5907, allocations: 120.8 kB / 0.5938 GB, free: 5.449 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.919e-05/0.5908, allocations: 24 kB / 0.5938 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002808/0.5936, allocations: 2.175 MB / 0.5959 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5936, allocations: 0 / 0.5959 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004389/0.598, allocations: 2.565 MB / 0.5984 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000708/0.5987, allocations: 268.4 kB / 0.5987 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.5989, allocations: 23.98 kB / 0.5987 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006657/0.5996, allocations: 55.88 kB / 0.5988 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.5997, allocations: 64.86 kB / 0.5988 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/0.5998, allocations: 35.98 kB / 0.5989 GB, free: 40 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002666/0.6025, allocations: 1.476 MB / 0.6003 GB, free: 14.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6025, allocations: 0 / 0.6003 GB, free: 14.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002981/0.6054, allocations: 0.5546 MB / 0.6009 GB, free: 13.98 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.004685/0.6101, allocations: 3.188 MB / 0.604 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005135/0.6153, allocations: 2.551 MB / 0.6065 GB, free: 8.184 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.6153, allocations: 4.188 kB / 0.6065 GB, free: 8.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.6165, allocations: 0.7812 MB / 0.6072 GB, free: 7.383 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.6184, allocations: 344.1 kB / 0.6076 GB, free: 7.059 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04114/0.6596, allocations: 23.62 MB / 0.6306 GB, free: 12.95 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003085/0.6626, allocations: 2.358 MB / 0.6329 GB, free: 10.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002628/0.6653, allocations: 1.037 MB / 0.6339 GB, free: 9.523 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/0.6669, allocations: 1.093 MB / 0.635 GB, free: 8.43 MB / 478.1 MB Notification: Performance of SimCode: time 1.423e-06/0.6669, allocations: 0 / 0.635 GB, free: 8.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09288/0.7598, allocations: 39.67 MB / 0.6737 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/15.14, allocations: 15.81 kB / 0.6738 GB, free: 0.9492 MB / 0.4981 GB " [Timeout remaining time 645] (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.931788507994497] Failed to read output from testmodel.py, exit status != 0: 15.257624684993061 15.286428462 15.104064894 Calling exit ...