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.001922/0.001922, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001679/0.001679, allocations: 214.8 kB / 22.25 MB, free: 5.078 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.82/1.82, allocations: 230.6 MB / 256 MB, free: 7.996 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.05869/0.05869, allocations: 9.238 MB / 321.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.002361/0.002361, allocations: 63.89 kB / 447.7 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1788, allocations: 55.47 MB / 0.4914 GB, free: 7.469 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.01312/0.1919, allocations: 7.069 MB / 0.4983 GB, free: 376 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007258/0.1991, allocations: 2.414 MB / 0.5007 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001403/0.2005, allocations: 39.81 kB / 0.5007 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.2017, allocations: 318 kB / 0.501 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00495/0.2066, allocations: 1.311 MB / 0.5023 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006728/0.2073, allocations: 75.91 kB / 0.5024 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004756/0.212, allocations: 2.152 MB / 0.5045 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001657/0.2137, allocations: 0.5829 MB / 0.505 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.2151, allocations: 0.7704 MB / 0.5058 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002039/0.2172, allocations: 1.234 MB / 0.507 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.2175, allocations: 204 kB / 0.5072 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.2198, allocations: 0.8503 MB / 0.508 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001519/0.2214, allocations: 1.075 MB / 0.5091 GB, free: 5.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.2229, allocations: 1.34 MB / 0.5104 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4148/0.6377, allocations: 4.478 MB / 0.5148 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.6378, allocations: 0 / 0.5148 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.6378, allocations: 0 / 0.5148 GB, free: 12.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.638, allocations: 0 / 0.5148 GB, free: 12.16 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.0109/0.6489, allocations: 3.364 MB / 0.518 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.6489, allocations: 9.188 kB / 0.518 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008245/0.6497, allocations: 487.5 kB / 0.5185 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007496/0.6572, allocations: 1.725 MB / 0.5202 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/0.6606, allocations: 1.141 MB / 0.5213 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.6607, allocations: 131.4 kB / 0.5214 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004655/0.6612, allocations: 155.1 kB / 0.5216 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01711/0.6783, allocations: 7.208 MB / 0.5286 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-05/0.6784, allocations: 18.44 kB / 0.5286 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/0.6787, allocations: 74.61 kB / 0.5287 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004731/0.6834, allocations: 1.737 MB / 0.5304 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02043/0.7039, allocations: 6.589 MB / 0.5368 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0406/0.7445, allocations: 21.11 MB / 0.5575 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004144/0.7486, allocations: 1.5 MB / 0.5589 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.7499, allocations: 0.63 MB / 0.5595 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005725/0.7556, allocations: 2.29 MB / 0.5618 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/0.7556, allocations: 43.16 kB / 0.5618 GB, free: 3.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.106e-06/0.7556, allocations: 0 / 0.5618 GB, free: 3.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01366/0.7693, allocations: 5.424 MB / 0.5671 GB, free: 14.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.7694, allocations: 64.41 kB / 0.5672 GB, free: 14.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004114/0.7735, allocations: 2.273 MB / 0.5694 GB, free: 11.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.193e-05/0.7736, allocations: 37.7 kB / 0.5694 GB, free: 11.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002203/0.7758, allocations: 1.916 MB / 0.5713 GB, free: 9.906 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007896/0.7766, allocations: 476.5 kB / 0.5718 GB, free: 9.445 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/0.7777, allocations: 0.6694 MB / 0.5724 GB, free: 8.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.7779, allocations: 307.4 kB / 0.5727 GB, free: 8.469 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.7801, allocations: 1.099 MB / 0.5738 GB, free: 7.367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00503/0.7851, allocations: 2.963 MB / 0.5767 GB, free: 3.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007525/0.7926, allocations: 4.372 MB / 0.5809 GB, free: 14.51 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.292e-05/0.7926, allocations: 23.75 kB / 0.581 GB, free: 14.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.009328/0.802, allocations: 4.133 MB / 0.585 GB, free: 10.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.543e-05/0.802, allocations: 43.92 kB / 0.585 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-05/0.8021, allocations: 64 kB / 0.5851 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005771/0.8027, allocations: 205.2 kB / 0.5853 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002522/0.8052, allocations: 0.7252 MB / 0.586 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004189/0.8094, allocations: 2.596 MB / 0.5885 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/0.8119, allocations: 168.8 kB / 0.5887 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.8122, allocations: 200 kB / 0.5889 GB, free: 6.52 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.003633/0.8158, allocations: 1.43 MB / 0.5903 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.8163, allocations: 194.7 kB / 0.5905 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.8195, allocations: 1.621 MB / 0.5921 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002081/0.8197, allocations: 20.5 kB / 0.5921 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/0.8197, allocations: 7.172 kB / 0.5921 GB, free: 3.227 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.8198, allocations: 3.984 kB / 0.5921 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.8301, allocations: 4.827 MB / 0.5968 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.8301, allocations: 3.938 kB / 0.5968 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008223/0.8309, allocations: 159.8 kB / 0.597 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003526/0.8313, allocations: 122.5 kB / 0.5971 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.773e-05/0.8313, allocations: 20 kB / 0.5971 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.8344, allocations: 2.077 MB / 0.5991 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.8344, allocations: 3.938 kB / 0.5991 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.8393, allocations: 2.558 MB / 0.6016 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/0.8401, allocations: 195.3 kB / 0.6018 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002039/0.8403, allocations: 19.94 kB / 0.6018 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007229/0.841, allocations: 55.92 kB / 0.6019 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000376/0.8414, allocations: 76.06 kB / 0.602 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.12e-05/0.8415, allocations: 32 kB / 0.602 GB, free: 8.848 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003208/0.8447, allocations: 1.476 MB / 0.6034 GB, free: 7.348 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.8447, allocations: 0 / 0.6034 GB, free: 7.348 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003483/0.8482, allocations: 0.5546 MB / 0.604 GB, free: 6.793 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.005447/0.8536, allocations: 3.199 MB / 0.6071 GB, free: 3.539 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006474/0.8601, allocations: 2.56 MB / 0.6096 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8601, allocations: 0 / 0.6096 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.8615, allocations: 0.7745 MB / 0.6104 GB, free: 192 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.8639, allocations: 332.6 kB / 0.6107 GB, free: 15.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05116/0.9151, allocations: 23.7 MB / 0.6338 GB, free: 5.699 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003655/0.9187, allocations: 2.358 MB / 0.6361 GB, free: 3.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002797/0.9215, allocations: 1.028 MB / 0.6371 GB, free: 2.293 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001835/0.9233, allocations: 1.097 MB / 0.6382 GB, free: 1.195 MB / 478.1 MB Notification: Performance of SimCode: time 2.765e-06/0.9233, allocations: 3.938 kB / 0.6382 GB, free: 1.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1397/1.063, allocations: 42.43 MB / 0.6796 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/19.87, allocations: 6.188 kB / 0.6796 GB, free: 7.02 MB / 0.5137 GB " [Timeout remaining time 640] (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: 23.25387629191391] Failed to read output from testmodel.py, exit status != 0: 20.002537271007895 20.021792554 19.380054422 Calling exit ...