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.001775/0.001775, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001622/0.001622, allocations: 215.4 kB / 23.04 MB, free: 5.074 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.591/1.591, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.04808/0.04808, allocations: 9.25 MB / 322.5 MB, free: 10.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="cs",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.00209/0.00209, allocations: 69.41 kB / 448.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1198, allocations: 55.46 MB / 0.4922 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01041/0.1302, allocations: 8.505 MB / 0.5005 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005575/0.1358, allocations: 2.655 MB / 0.5031 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.1371, allocations: 43.88 kB / 0.5031 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001141/0.1382, allocations: 377.5 kB / 0.5035 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004495/0.1427, allocations: 1.462 MB / 0.5049 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009175/0.1436, allocations: 131.8 kB / 0.505 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004683/0.1483, allocations: 2.537 MB / 0.5075 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.1503, allocations: 0.7458 MB / 0.5082 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.1523, allocations: 0.93 MB / 0.5091 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.155, allocations: 1.432 MB / 0.5105 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008138/0.1558, allocations: 232 kB / 0.5108 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.1578, allocations: 0.8776 MB / 0.5116 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.1594, allocations: 1.242 MB / 0.5128 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002596/0.162, allocations: 1.569 MB / 0.5144 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.238/0.4, allocations: 5.015 MB / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.4, allocations: 0.5625 kB / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4, allocations: 0 / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001626/0.4002, allocations: 5.625 kB / 0.5193 GB, free: 11.88 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.01365/0.4138, allocations: 4.4 MB / 0.5236 GB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.4139, allocations: 9.594 kB / 0.5236 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001402/0.414, allocations: 73.7 kB / 0.5236 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00125/0.4153, allocations: 0.5484 MB / 0.5242 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007472/0.4227, allocations: 1.785 MB / 0.5259 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004545/0.4273, allocations: 1.307 MB / 0.5272 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/0.4275, allocations: 153.3 kB / 0.5273 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001308/0.4288, allocations: 200.9 kB / 0.5275 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01683/0.4457, allocations: 8.258 MB / 0.5356 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.294e-05/0.4458, allocations: 20 kB / 0.5356 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.4461, allocations: 91.38 kB / 0.5357 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003427/0.4495, allocations: 1.91 MB / 0.5376 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/0.4652, allocations: 7.416 MB / 0.5448 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04179/0.5069, allocations: 25.53 MB / 0.5698 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006791/0.5137, allocations: 2.087 MB / 0.5718 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/0.5154, allocations: 0.8615 MB / 0.5726 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00732/0.5228, allocations: 3.158 MB / 0.5757 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.5228, allocations: 47.55 kB / 0.5758 GB, free: 7.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.868e-06/0.5228, allocations: 0 / 0.5758 GB, free: 7.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.0149/0.5377, allocations: 5.496 MB / 0.5811 GB, free: 1.676 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.5378, allocations: 68.72 kB / 0.5812 GB, free: 1.598 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005707/0.5435, allocations: 2.629 MB / 0.5838 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003553/0.5438, allocations: 45.7 kB / 0.5838 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/0.546, allocations: 2.184 MB / 0.5859 GB, free: 12.72 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.547, allocations: 0.6724 MB / 0.5866 GB, free: 12.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002313/0.5493, allocations: 0.8302 MB / 0.5874 GB, free: 11.21 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.5495, allocations: 301.1 kB / 0.5877 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003172/0.5527, allocations: 1.371 MB / 0.589 GB, free: 9.539 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005499/0.5582, allocations: 3.626 MB / 0.5926 GB, free: 4.824 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/0.5677, allocations: 5.422 MB / 0.5979 GB, free: 14.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/0.5679, allocations: 22.16 kB / 0.5979 GB, free: 14.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01393/0.5818, allocations: 5.223 MB / 0.603 GB, free: 9.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.5819, allocations: 44.03 kB / 0.603 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002086/0.5822, allocations: 80 kB / 0.6031 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.5834, allocations: 366.9 kB / 0.6035 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.5871, allocations: 0.9094 MB / 0.6043 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006394/0.5935, allocations: 4.078 MB / 0.6083 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/0.5969, allocations: 207.9 kB / 0.6085 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008976/0.5978, allocations: 247.9 kB / 0.6088 GB, free: 3.555 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.00388/0.6017, allocations: 1.596 MB / 0.6103 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006075/0.6023, allocations: 242.9 kB / 0.6106 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005062/0.6074, allocations: 2.325 MB / 0.6128 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/0.6075, allocations: 31.98 kB / 0.6129 GB, free: 15.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.6075, allocations: 8 kB / 0.6129 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.6076, allocations: 7.969 kB / 0.6129 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.6219, allocations: 6.402 MB / 0.6191 GB, free: 8.828 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.6219, allocations: 4.688 kB / 0.6191 GB, free: 8.824 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/0.6229, allocations: 239.7 kB / 0.6194 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.6237, allocations: 260.6 kB / 0.6196 GB, free: 8.332 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.6238, allocations: 32 kB / 0.6196 GB, free: 8.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004681/0.6285, allocations: 3.319 MB / 0.6229 GB, free: 4.879 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.6285, allocations: 7.938 kB / 0.6229 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006733/0.6352, allocations: 3.613 MB / 0.6264 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009623/0.6362, allocations: 234.4 kB / 0.6266 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005292/0.6367, allocations: 28 kB / 0.6267 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.6379, allocations: 78.53 kB / 0.6267 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/0.6382, allocations: 122.5 kB / 0.6269 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6383, allocations: 48 kB / 0.6269 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003787/0.6421, allocations: 1.68 MB / 0.6285 GB, free: 15 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6421, allocations: 288 / 0.6285 GB, free: 15 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003984/0.6461, allocations: 0.707 MB / 0.6292 GB, free: 14.29 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.007123/0.6532, allocations: 4.259 MB / 0.6334 GB, free: 9.961 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006905/0.6601, allocations: 3.311 MB / 0.6366 GB, free: 6.648 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.6601, allocations: 0 / 0.6366 GB, free: 6.648 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.6623, allocations: 1.104 MB / 0.6377 GB, free: 5.531 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003062/0.6653, allocations: 404.1 kB / 0.6381 GB, free: 5.148 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05936/0.7247, allocations: 29.32 MB / 0.6667 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004906/0.7296, allocations: 2.625 MB / 0.6693 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003146/0.7327, allocations: 1.267 MB / 0.6705 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002426/0.7352, allocations: 1.358 MB / 0.6718 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of SimCode: time 2.655e-06/0.7352, allocations: 0 / 0.6718 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3675/1.103, allocations: 53.29 MB / 0.7239 GB, free: 183.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.64/19.74, allocations: 19.55 kB / 0.7239 GB, free: 183.4 MB / 0.545 GB " [Timeout remaining time 640] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.892430261010304] Failed to read output from testmodel.py, exit status != 0: 19.946924990974367 19.970597955 19.566900667 Calling exit ...