Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.00178/0.00178, allocations: 102.9 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.002405/0.002405, 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.433/1.433, 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.05583/0.05583, allocations: 9.23 MB / 318.1 MB, free: 11.23 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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.002991/0.002991, allocations: 67.91 kB / 442.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1523, allocations: 55.42 MB / 498 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01106/0.1633, allocations: 8.479 MB / 0.4946 GB, free: 2.523 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00739/0.1707, allocations: 2.644 MB / 0.4972 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.1728, allocations: 39.81 kB / 0.4972 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.1743, allocations: 381.5 kB / 0.4976 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005161/0.1795, allocations: 1.455 MB / 0.499 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006882/0.1802, allocations: 131.8 kB / 0.4991 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004643/0.1848, allocations: 2.526 MB / 0.5016 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.1866, allocations: 0.7764 MB / 0.5023 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.1885, allocations: 0.9222 MB / 0.5032 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1913, allocations: 1.436 MB / 0.5046 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006795/0.192, allocations: 232 kB / 0.5049 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.194, allocations: 0.8737 MB / 0.5057 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001585/0.1956, allocations: 1.242 MB / 0.5069 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002124/0.1977, allocations: 1.561 MB / 0.5084 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2794/0.4771, allocations: 5.034 MB / 0.5134 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4771, allocations: 0.7188 kB / 0.5134 GB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4771, allocations: 0 / 0.5134 GB, free: 11.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001936/0.4773, allocations: 2.219 kB / 0.5134 GB, free: 11.05 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01259/0.4899, allocations: 4.47 MB / 0.5177 GB, free: 9.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/0.49, allocations: 8.562 kB / 0.5177 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001383/0.4914, allocations: 0.5473 MB / 0.5183 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008044/0.4994, allocations: 1.784 MB / 0.52 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003681/0.5031, allocations: 1.364 MB / 0.5213 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.5033, allocations: 154.8 kB / 0.5215 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.5043, allocations: 199.8 kB / 0.5217 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/0.521, allocations: 8.257 MB / 0.5297 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-05/0.5211, allocations: 22.75 kB / 0.5298 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/0.5214, allocations: 94.2 kB / 0.5299 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003719/0.5251, allocations: 1.911 MB / 0.5317 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.5437, allocations: 7.419 MB / 0.539 GB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04361/0.5873, allocations: 25.58 MB / 0.5639 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007215/0.5945, allocations: 2.538 MB / 0.5664 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/0.5963, allocations: 0.8629 MB / 0.5673 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008203/0.6045, allocations: 5.098 MB / 0.5722 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.011e-05/0.6046, allocations: 51.5 kB / 0.5723 GB, free: 5.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.767e-06/0.6046, allocations: 0 / 0.5723 GB, free: 5.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01431/0.6189, allocations: 5.507 MB / 0.5777 GB, free: 132 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.6189, allocations: 66.78 kB / 0.5777 GB, free: 56 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004297/0.6232, allocations: 2.62 MB / 0.5803 GB, free: 13.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/0.6235, allocations: 57.69 kB / 0.5804 GB, free: 13.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/0.6253, allocations: 2.171 MB / 0.5825 GB, free: 11.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000928/0.6262, allocations: 0.6808 MB / 0.5831 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/0.6275, allocations: 0.8302 MB / 0.5839 GB, free: 9.672 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.6277, allocations: 307.8 kB / 0.5842 GB, free: 9.371 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002437/0.6301, allocations: 1.371 MB / 0.5856 GB, free: 7.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00455/0.6347, allocations: 3.62 MB / 0.5891 GB, free: 3.285 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007697/0.6424, allocations: 5.417 MB / 0.5944 GB, free: 13.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.792e-05/0.6424, allocations: 24 kB / 0.5944 GB, free: 13.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01097/0.6534, allocations: 5.227 MB / 0.5995 GB, free: 8.109 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.665e-05/0.6535, allocations: 40 kB / 0.5996 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.156e-05/0.6536, allocations: 76 kB / 0.5996 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009782/0.6545, allocations: 372.8 kB / 0.6 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003106/0.6576, allocations: 0.9124 MB / 0.6009 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00581/0.6635, allocations: 4.173 MB / 0.605 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.667, allocations: 213.5 kB / 0.6052 GB, free: 2.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000943/0.6679, allocations: 243.8 kB / 0.6054 GB, free: 1.973 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (498): * Single equations (assignments): 493 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003855/0.6718, allocations: 1.607 MB / 0.607 GB, free: 364 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007766/0.6725, allocations: 250.3 kB / 0.6072 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00526/0.6778, allocations: 2.327 MB / 0.6095 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001261/0.6779, allocations: 31.73 kB / 0.6095 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.6779, allocations: 4 kB / 0.6095 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.678, allocations: 7.969 kB / 0.6095 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.6924, allocations: 6.44 MB / 0.6158 GB, free: 7.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.6924, allocations: 4 kB / 0.6158 GB, free: 7.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.6934, allocations: 243.6 kB / 0.616 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007681/0.6942, allocations: 261.1 kB / 0.6163 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/0.6943, allocations: 34.56 kB / 0.6163 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/0.699, allocations: 3.421 MB / 0.6197 GB, free: 3.094 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/0.699, allocations: 11.94 kB / 0.6197 GB, free: 3.082 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00639/0.7054, allocations: 3.596 MB / 0.6232 GB, free: 15.42 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009048/0.7063, allocations: 319.5 kB / 0.6235 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005812/0.7069, allocations: 32 kB / 0.6235 GB, free: 15.06 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.7081, allocations: 75.91 kB / 0.6236 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/0.7084, allocations: 107 kB / 0.6237 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.7085, allocations: 51.98 kB / 0.6238 GB, free: 14.83 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004074/0.7126, allocations: 1.68 MB / 0.6254 GB, free: 13.13 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.7126, allocations: 0 / 0.6254 GB, free: 13.13 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00474/0.7173, allocations: 0.7106 MB / 0.6261 GB, free: 12.43 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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 {(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.007603/0.7249, allocations: 4.253 MB / 0.6302 GB, free: 8.102 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007418/0.7323, allocations: 3.314 MB / 0.6335 GB, free: 4.793 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.7324, allocations: 0 / 0.6335 GB, free: 4.793 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.7345, allocations: 1.101 MB / 0.6346 GB, free: 3.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/0.7375, allocations: 405.8 kB / 0.6349 GB, free: 3.293 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05846/0.796, allocations: 29.24 MB / 0.6635 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/0.8002, allocations: 2.623 MB / 0.6661 GB, free: 384 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00337/0.8035, allocations: 1.267 MB / 0.6673 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/0.8058, allocations: 1.347 MB / 0.6686 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of SimCode: time 1.613e-06/0.8058, allocations: 0 / 0.6686 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/0.9196, allocations: 49.85 MB / 0.7173 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/17.4, allocations: 15.97 kB / 0.7173 GB, free: 12.13 MB / 0.5606 GB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.DoublePendulum_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_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.460975972004235] Failed to read output from testmodel.py, exit status != 0: 17.5132938559982 17.743516905 17.049751078 Calling exit ...