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.001396/0.001396, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001469/0.001469, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.581/1.581, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.05628/0.05628, allocations: 9.238 MB / 318.8 MB, free: 15.55 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.001959/0.001959, allocations: 69.16 kB / 443.2 MB, free: 39.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1191, allocations: 55.44 MB / 498.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.006441/0.1256, allocations: 7.056 MB / 0.4939 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005486/0.131, allocations: 2.406 MB / 0.4962 GB, free: 13.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.1321, allocations: 31.88 kB / 0.4962 GB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000821/0.1329, allocations: 314 kB / 0.4965 GB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003052/0.136, allocations: 1.3 MB / 0.4978 GB, free: 11.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.1363, allocations: 79.88 kB / 0.4979 GB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.1391, allocations: 2.144 MB / 0.5 GB, free: 9.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.1402, allocations: 0.5983 MB / 0.5006 GB, free: 8.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.1413, allocations: 0.7704 MB / 0.5013 GB, free: 7.883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001672/0.143, allocations: 1.234 MB / 0.5025 GB, free: 6.645 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003473/0.1433, allocations: 200 kB / 0.5027 GB, free: 6.449 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.1448, allocations: 0.8503 MB / 0.5036 GB, free: 5.598 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.1458, allocations: 1.079 MB / 0.5046 GB, free: 4.516 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.1472, allocations: 1.336 MB / 0.5059 GB, free: 3.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.1529, allocations: 4.486 MB / 0.5103 GB, free: 14.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.153, allocations: 0 / 0.5103 GB, free: 14.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.153, allocations: 0 / 0.5103 GB, free: 14.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001407/0.1531, allocations: 4 kB / 0.5103 GB, free: 14.66 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.009166/0.1623, allocations: 3.437 MB / 0.5137 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.1623, allocations: 8.031 kB / 0.5137 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001083/0.1624, allocations: 67.2 kB / 0.5137 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006615/0.1631, allocations: 488.1 kB / 0.5142 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006679/0.1698, allocations: 1.727 MB / 0.5159 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00245/0.1722, allocations: 1.198 MB / 0.517 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.1723, allocations: 123.3 kB / 0.5172 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/0.1727, allocations: 163.8 kB / 0.5173 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.1844, allocations: 7.204 MB / 0.5244 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.107e-05/0.1845, allocations: 11.88 kB / 0.5244 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.1847, allocations: 79.88 kB / 0.5244 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/0.1879, allocations: 1.734 MB / 0.5261 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.2012, allocations: 6.592 MB / 0.5326 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03519/0.2364, allocations: 21.15 MB / 0.5532 GB, free: 1.844 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004675/0.241, allocations: 1.959 MB / 0.5551 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.2422, allocations: 0.6322 MB / 0.5558 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006207/0.2484, allocations: 3.278 MB / 0.559 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.2485, allocations: 39.22 kB / 0.559 GB, free: 11.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=106): time 4.799e-06/0.2485, allocations: 0 / 0.559 GB, free: 11.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.01437/0.2628, allocations: 5.571 MB / 0.5644 GB, free: 5.871 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.2629, allocations: 64.41 kB / 0.5645 GB, free: 5.797 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005315/0.2682, allocations: 2.274 MB / 0.5667 GB, free: 3.477 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.2684, allocations: 45.64 kB / 0.5668 GB, free: 3.426 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/0.2705, allocations: 1.915 MB / 0.5686 GB, free: 1.488 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007265/0.2713, allocations: 480.2 kB / 0.5691 GB, free: 1.016 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/0.2727, allocations: 0.6633 MB / 0.5697 GB, free: 352 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.2729, allocations: 305.1 kB / 0.57 GB, free: 44 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002239/0.2752, allocations: 1.1 MB / 0.5711 GB, free: 14.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.2792, allocations: 2.958 MB / 0.574 GB, free: 11.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006564/0.2857, allocations: 4.376 MB / 0.5783 GB, free: 5.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.473e-05/0.2858, allocations: 16 kB / 0.5783 GB, free: 5.754 MB / 446.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.008841/0.2946, allocations: 4.151 MB / 0.5823 GB, free: 1.598 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.104e-05/0.2947, allocations: 32 kB / 0.5824 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.2948, allocations: 72.09 kB / 0.5824 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006169/0.2955, allocations: 201 kB / 0.5826 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/0.298, allocations: 0.7252 MB / 0.5833 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.276/0.574, allocations: 2.694 MB / 0.586 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002705/0.5767, allocations: 170.7 kB / 0.5861 GB, free: 85.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004988/0.5772, allocations: 198.6 kB / 0.5863 GB, free: 85.05 MB / 446.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.002582/0.5798, allocations: 1.426 MB / 0.5877 GB, free: 84.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003818/0.5802, allocations: 197 kB / 0.5879 GB, free: 84.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.583, allocations: 1.612 MB / 0.5895 GB, free: 84.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/0.5831, allocations: 24.39 kB / 0.5895 GB, free: 84.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.5831, allocations: 4.75 kB / 0.5895 GB, free: 84.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.5832, allocations: 5.062 kB / 0.5895 GB, free: 84.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008995/0.5922, allocations: 4.865 MB / 0.5943 GB, free: 82.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.5922, allocations: 3.25 kB / 0.5943 GB, free: 82.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006905/0.5929, allocations: 159.9 kB / 0.5944 GB, free: 82.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/0.5932, allocations: 118.8 kB / 0.5945 GB, free: 82.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.998e-05/0.5933, allocations: 20.81 kB / 0.5945 GB, free: 82.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/0.5953, allocations: 2.17 MB / 0.5967 GB, free: 81.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5953, allocations: 4.734 kB / 0.5967 GB, free: 81.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004006/0.5993, allocations: 2.56 MB / 0.5992 GB, free: 80.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005373/0.5999, allocations: 279.3 kB / 0.5994 GB, free: 79.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.6001, allocations: 15.94 kB / 0.5995 GB, free: 79.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006492/0.6007, allocations: 58.67 kB / 0.5995 GB, free: 79.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.6008, allocations: 61.59 kB / 0.5996 GB, free: 79.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.566e-05/0.6009, allocations: 39.28 kB / 0.5996 GB, free: 79.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.6027, allocations: 1.471 MB / 0.601 GB, free: 79.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6027, allocations: 0.9844 kB / 0.601 GB, free: 79.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002427/0.6051, allocations: 0.5555 MB / 0.6016 GB, free: 79.27 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.003314/0.6085, allocations: 3.193 MB / 0.6047 GB, free: 77.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003816/0.6123, allocations: 2.559 MB / 0.6072 GB, free: 76.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.6123, allocations: 8.438 kB / 0.6072 GB, free: 76.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.6133, allocations: 0.7714 MB / 0.608 GB, free: 76.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.615, allocations: 337.2 kB / 0.6083 GB, free: 75.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02991/0.6449, allocations: 23.64 MB / 0.6314 GB, free: 50.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.6472, allocations: 2.353 MB / 0.6337 GB, free: 47.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002071/0.6493, allocations: 1.035 MB / 0.6347 GB, free: 46.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.6505, allocations: 1.101 MB / 0.6358 GB, free: 45.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.412e-06/0.6505, allocations: 0 / 0.6358 GB, free: 45.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1036/0.7541, allocations: 39.7 MB / 0.6745 GB, free: 6.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.85, allocations: 14.39 kB / 0.6745 GB, free: 6.215 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.912219061981887] Failed to read output from testmodel.py, exit status != 0: 16.021353030984756 16.043704413 15.88553532 Calling exit ...