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.002667/0.002667, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.003773/0.003773, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.86/1.86, allocations: 230.6 MB / 256 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.05656/0.05656, allocations: 9.233 MB / 321.7 MB, free: 10.14 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.002324/0.002324, allocations: 77.7 kB / 447.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1904, allocations: 55.46 MB / 0.4914 GB, free: 7.555 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01498/0.2054, allocations: 8.505 MB / 0.4997 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.2155, allocations: 2.651 MB / 0.5023 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003098/0.2186, allocations: 35.88 kB / 0.5023 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.2205, allocations: 385.4 kB / 0.5027 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00599/0.2265, allocations: 1.463 MB / 0.5041 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.2276, allocations: 143.8 kB / 0.5043 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006036/0.2336, allocations: 2.521 MB / 0.5067 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/0.2356, allocations: 0.7574 MB / 0.5075 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002616/0.2382, allocations: 0.9222 MB / 0.5084 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003286/0.2415, allocations: 1.44 MB / 0.5098 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001292/0.2428, allocations: 232 kB / 0.51 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003294/0.2461, allocations: 0.8737 MB / 0.5109 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002251/0.2483, allocations: 1.238 MB / 0.5121 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00386/0.2522, allocations: 1.569 MB / 0.5136 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4416/0.6938, allocations: 5.015 MB / 0.5185 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.6938, allocations: 3.156 kB / 0.5185 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6938, allocations: 0 / 0.5185 GB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001207/0.6939, allocations: 0.8438 kB / 0.5185 GB, free: 11.77 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.01662/0.7105, allocations: 4.406 MB / 0.5228 GB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001135/0.7106, allocations: 10.86 kB / 0.5228 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001186/0.7118, allocations: 0.5455 MB / 0.5233 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008675/0.7205, allocations: 1.783 MB / 0.5251 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003459/0.7239, allocations: 1.305 MB / 0.5264 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.7241, allocations: 157.6 kB / 0.5265 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005089/0.7246, allocations: 201.2 kB / 0.5267 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/0.7441, allocations: 8.252 MB / 0.5348 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002884/0.7444, allocations: 24.41 kB / 0.5348 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003529/0.7448, allocations: 98.95 kB / 0.5349 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/0.7486, allocations: 1.905 MB / 0.5367 GB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01868/0.7672, allocations: 7.425 MB / 0.544 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05007/0.8173, allocations: 25.53 MB / 0.5689 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00713/0.8244, allocations: 2.086 MB / 0.571 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.8262, allocations: 0.8664 MB / 0.5718 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007821/0.8341, allocations: 3.15 MB / 0.5749 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.836e-05/0.8341, allocations: 47.5 kB / 0.5749 GB, free: 7.176 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.947e-06/0.8341, allocations: 0 / 0.5749 GB, free: 7.176 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01486/0.849, allocations: 5.507 MB / 0.5803 GB, free: 1.723 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.849, allocations: 68.7 kB / 0.5804 GB, free: 1.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004803/0.8538, allocations: 2.618 MB / 0.5829 GB, free: 15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.854, allocations: 49.7 kB / 0.583 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002057/0.856, allocations: 2.183 MB / 0.5851 GB, free: 12.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006757/0.8567, allocations: 0.6769 MB / 0.5858 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001602/0.8583, allocations: 0.8246 MB / 0.5866 GB, free: 11.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.8585, allocations: 309.1 kB / 0.5869 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002742/0.8612, allocations: 1.367 MB / 0.5882 GB, free: 9.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005119/0.8664, allocations: 3.629 MB / 0.5917 GB, free: 4.871 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008522/0.8749, allocations: 5.413 MB / 0.597 GB, free: 14.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.406e-05/0.8749, allocations: 24 kB / 0.5971 GB, free: 14.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01087/0.8858, allocations: 5.237 MB / 0.6022 GB, free: 9.633 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002542/0.8861, allocations: 40 kB / 0.6022 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001674/0.8862, allocations: 76 kB / 0.6023 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/0.8875, allocations: 363.3 kB / 0.6026 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003336/0.8909, allocations: 0.9163 MB / 0.6035 GB, free: 8.246 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/0.8973, allocations: 4.074 MB / 0.6075 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.9007, allocations: 211.9 kB / 0.6077 GB, free: 3.855 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003539/0.9011, allocations: 244 kB / 0.6079 GB, free: 3.617 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.004843/0.9059, allocations: 1.597 MB / 0.6095 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005426/0.9065, allocations: 246.4 kB / 0.6097 GB, free: 1.766 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005015/0.9115, allocations: 2.333 MB / 0.612 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000184/0.9117, allocations: 27.98 kB / 0.612 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.9117, allocations: 4 kB / 0.612 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.9117, allocations: 7.969 kB / 0.612 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.9262, allocations: 6.4 MB / 0.6183 GB, free: 8.891 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.9263, allocations: 4 kB / 0.6183 GB, free: 8.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.9274, allocations: 247.6 kB / 0.6185 GB, free: 8.645 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007899/0.9282, allocations: 253.1 kB / 0.6188 GB, free: 8.395 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.9283, allocations: 35.98 kB / 0.6188 GB, free: 8.359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005063/0.9334, allocations: 3.315 MB / 0.622 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.9334, allocations: 7.938 kB / 0.6221 GB, free: 4.934 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00661/0.94, allocations: 3.604 MB / 0.6256 GB, free: 1.258 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008401/0.9408, allocations: 238.5 kB / 0.6258 GB, free: 1.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002743/0.9411, allocations: 32 kB / 0.6258 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009547/0.9421, allocations: 82.53 kB / 0.6259 GB, free: 0.9141 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.9423, allocations: 109 kB / 0.626 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.9424, allocations: 47.98 kB / 0.6261 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0036/0.946, allocations: 1.684 MB / 0.6277 GB, free: 15.06 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.946, allocations: 0 / 0.6277 GB, free: 15.06 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004841/0.9508, allocations: 0.7061 MB / 0.6284 GB, free: 14.36 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.007169/0.958, allocations: 4.253 MB / 0.6325 GB, free: 10.03 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007947/0.9659, allocations: 3.317 MB / 0.6358 GB, free: 6.719 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9659, allocations: 0 / 0.6358 GB, free: 6.719 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002019/0.968, allocations: 1.098 MB / 0.6369 GB, free: 5.605 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/0.9705, allocations: 405.5 kB / 0.6372 GB, free: 5.219 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06221/1.033, allocations: 29.32 MB / 0.6659 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004118/1.037, allocations: 2.617 MB / 0.6684 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003383/1.04, allocations: 1.271 MB / 0.6697 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/1.043, allocations: 1.352 MB / 0.671 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of SimCode: time 3.256e-06/1.043, allocations: 0 / 0.671 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4978/1.54, allocations: 53.28 MB / 0.723 GB, free: 183.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.58/23.12, allocations: 5.578 kB / 0.723 GB, free: 183.6 MB / 0.545 GB " [Timeout remaining time 637] (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: 26.73004930699244] Failed to read output from testmodel.py, exit status != 0: 23.270862346049398 23.293360046 22.594587909 Calling exit ...