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.001894/0.001894, 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.001952/0.001952, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.608/1.608, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.0482/0.0482, allocations: 9.244 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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.00211/0.00211, allocations: 68.12 kB / 448.5 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1394, allocations: 55.47 MB / 0.4922 GB, free: 7.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.0113/0.1507, allocations: 7.061 MB / 0.4991 GB, free: 392 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006617/0.1573, allocations: 2.422 MB / 0.5014 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.159, allocations: 31.88 kB / 0.5015 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.1603, allocations: 322 kB / 0.5018 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004731/0.165, allocations: 1.304 MB / 0.5031 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006143/0.1656, allocations: 79.84 kB / 0.5031 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003899/0.1695, allocations: 2.144 MB / 0.5052 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.1709, allocations: 0.5829 MB / 0.5058 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/0.1724, allocations: 0.7743 MB / 0.5065 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002427/0.1748, allocations: 1.242 MB / 0.5078 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006291/0.1755, allocations: 200 kB / 0.508 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002053/0.1775, allocations: 0.8464 MB / 0.5088 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.179, allocations: 1.075 MB / 0.5098 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.181, allocations: 1.336 MB / 0.5111 GB, free: 3.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3005/0.4816, allocations: 4.48 MB / 0.5155 GB, free: 12.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.4816, allocations: 1.188 kB / 0.5155 GB, free: 12.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4816, allocations: 0.8125 kB / 0.5155 GB, free: 12.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001639/0.4817, allocations: 0 / 0.5155 GB, free: 12.14 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.007975/0.4897, allocations: 3.369 MB / 0.5188 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.4898, allocations: 9.781 kB / 0.5188 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.551e-05/0.4898, allocations: 61.92 kB / 0.5189 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006391/0.4905, allocations: 484.5 kB / 0.5193 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006555/0.497, allocations: 1.73 MB / 0.521 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003268/0.5003, allocations: 1.134 MB / 0.5221 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.5004, allocations: 125 kB / 0.5222 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005259/0.5009, allocations: 159.3 kB / 0.5224 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.5135, allocations: 7.212 MB / 0.5294 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.5136, allocations: 15.61 kB / 0.5295 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/0.5139, allocations: 76.62 kB / 0.5295 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003762/0.5176, allocations: 1.736 MB / 0.5312 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/0.5319, allocations: 6.592 MB / 0.5377 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03729/0.5692, allocations: 21.11 MB / 0.5583 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004227/0.5734, allocations: 1.505 MB / 0.5597 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.5746, allocations: 0.6364 MB / 0.5604 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004779/0.5794, allocations: 2.278 MB / 0.5626 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.5794, allocations: 46.42 kB / 0.5626 GB, free: 3.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 2.665e-06/0.5794, allocations: 0 / 0.5626 GB, free: 3.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01163/0.591, allocations: 5.426 MB / 0.5679 GB, free: 14.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5911, allocations: 64.41 kB / 0.568 GB, free: 14.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.5946, allocations: 2.272 MB / 0.5702 GB, free: 11.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.5947, allocations: 41.7 kB / 0.5703 GB, free: 11.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.5963, allocations: 1.908 MB / 0.5721 GB, free: 9.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000526/0.5968, allocations: 474 kB / 0.5726 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000987/0.5978, allocations: 0.6697 MB / 0.5732 GB, free: 8.699 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5979, allocations: 313 kB / 0.5735 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/0.6, allocations: 1.099 MB / 0.5746 GB, free: 7.293 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004029/0.604, allocations: 2.96 MB / 0.5775 GB, free: 3.445 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006295/0.6103, allocations: 4.378 MB / 0.5818 GB, free: 14.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.699e-05/0.6103, allocations: 16 kB / 0.5818 GB, free: 14.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.008831/0.6192, allocations: 4.144 MB / 0.5858 GB, free: 10.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.57e-05/0.6192, allocations: 32 kB / 0.5859 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/0.6193, allocations: 68 kB / 0.5859 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000591/0.6199, allocations: 205.4 kB / 0.5861 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/0.6226, allocations: 0.7252 MB / 0.5868 GB, free: 9.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003564/0.6262, allocations: 2.601 MB / 0.5894 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.629, allocations: 160 kB / 0.5895 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005442/0.6296, allocations: 210.6 kB / 0.5897 GB, free: 6.441 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.002654/0.6322, allocations: 1.426 MB / 0.5911 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004884/0.6327, allocations: 194.7 kB / 0.5913 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003501/0.6362, allocations: 1.621 MB / 0.5929 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/0.6363, allocations: 23.98 kB / 0.5929 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.547e-06/0.6363, allocations: 4 kB / 0.5929 GB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.6363, allocations: 3.984 kB / 0.5929 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009882/0.6462, allocations: 4.831 MB / 0.5976 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.6462, allocations: 3.828 kB / 0.5976 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006747/0.6469, allocations: 155.8 kB / 0.5978 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003748/0.6473, allocations: 123.9 kB / 0.5979 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-05/0.6473, allocations: 20 kB / 0.5979 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/0.65, allocations: 2.069 MB / 0.5999 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.65, allocations: 7.969 kB / 0.5999 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.6544, allocations: 2.557 MB / 0.6024 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006253/0.655, allocations: 198.7 kB / 0.6026 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.6552, allocations: 23.94 kB / 0.6027 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006598/0.6559, allocations: 55.92 kB / 0.6027 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.656, allocations: 64.95 kB / 0.6028 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.079e-05/0.6561, allocations: 36.55 kB / 0.6028 GB, free: 8.777 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002423/0.6585, allocations: 1.472 MB / 0.6042 GB, free: 7.281 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6585, allocations: 0 / 0.6042 GB, free: 7.281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002559/0.6611, allocations: 0.5655 MB / 0.6048 GB, free: 6.719 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.004538/0.6656, allocations: 3.189 MB / 0.6079 GB, free: 3.469 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.6703, allocations: 2.559 MB / 0.6104 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6703, allocations: 4 kB / 0.6104 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.6715, allocations: 0.7779 MB / 0.6112 GB, free: 116 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.6736, allocations: 340.8 kB / 0.6115 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03692/0.7105, allocations: 23.7 MB / 0.6346 GB, free: 5.621 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003105/0.7136, allocations: 2.353 MB / 0.6369 GB, free: 3.246 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00266/0.7162, allocations: 1.041 MB / 0.638 GB, free: 2.211 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/0.718, allocations: 1.097 MB / 0.639 GB, free: 1.113 MB / 478.1 MB Notification: Performance of SimCode: time 9.31e-07/0.718, allocations: 0 / 0.639 GB, free: 1.113 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08843/0.8064, allocations: 42.45 MB / 0.6805 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/17.11, allocations: 6.656 kB / 0.6805 GB, free: 6.918 MB / 0.5137 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.141389431082644] Failed to read output from testmodel.py, exit status != 0: 17.311340956017375 17.328317831 16.843132931 Calling exit ...