Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.001676/0.001676, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002487/0.002487, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.789 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.05051/0.05051, allocations: 9.232 MB / 321.7 MB, free: 9.84 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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.002067/0.002067, allocations: 69.92 kB / 447.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1197, allocations: 55.48 MB / 0.4913 GB, free: 6.992 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01316/0.1329, allocations: 7.537 MB / 0.4987 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005367/0.1383, allocations: 2.527 MB / 0.5012 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008768/0.1392, allocations: 35.88 kB / 0.5012 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008556/0.14, allocations: 373.5 kB / 0.5016 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003527/0.1435, allocations: 1.428 MB / 0.503 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.144, allocations: 151.8 kB / 0.5031 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003301/0.1473, allocations: 2.518 MB / 0.5056 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/0.1484, allocations: 0.808 MB / 0.5064 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001386/0.1498, allocations: 0.9417 MB / 0.5073 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001907/0.1517, allocations: 1.378 MB / 0.5086 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004081/0.1521, allocations: 240 kB / 0.5088 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.1536, allocations: 0.7645 MB / 0.5096 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.1548, allocations: 1.242 MB / 0.5108 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.156, allocations: 1.114 MB / 0.5119 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2422/0.3983, allocations: 5.072 MB / 0.5168 GB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3983, allocations: 1.344 kB / 0.5168 GB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3983, allocations: 0 / 0.5168 GB, free: 12.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.3984, allocations: 5.375 kB / 0.5169 GB, free: 12.47 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01105/0.4095, allocations: 4.318 MB / 0.5211 GB, free: 11.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4095, allocations: 10.97 kB / 0.5211 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007939/0.4103, allocations: 0.5512 MB / 0.5216 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007178/0.4175, allocations: 1.807 MB / 0.5234 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004707/0.4222, allocations: 1.314 MB / 0.5247 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.4225, allocations: 149 kB / 0.5248 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.4238, allocations: 193.3 kB / 0.525 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01702/0.4408, allocations: 8.193 MB / 0.533 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001502/0.441, allocations: 21.81 kB / 0.533 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009107/0.4419, allocations: 94.17 kB / 0.5331 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00342/0.4453, allocations: 1.917 MB / 0.535 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01762/0.4629, allocations: 7.41 MB / 0.5422 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04642/0.5094, allocations: 23.42 MB / 0.5651 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006159/0.5155, allocations: 1.87 MB / 0.5669 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.5172, allocations: 0.8134 MB / 0.5677 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007521/0.5247, allocations: 2.62 MB / 0.5703 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.5248, allocations: 45.2 kB / 0.5703 GB, free: 12.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 5.27e-06/0.5248, allocations: 0 / 0.5703 GB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01253/0.5373, allocations: 4.703 MB / 0.5749 GB, free: 7.586 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.5374, allocations: 64.41 kB / 0.575 GB, free: 7.512 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005309/0.5427, allocations: 2.626 MB / 0.5775 GB, free: 4.855 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.5428, allocations: 45.7 kB / 0.5776 GB, free: 4.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001889/0.5447, allocations: 2.156 MB / 0.5797 GB, free: 2.656 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007195/0.5454, allocations: 0.5612 MB / 0.5802 GB, free: 2.102 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/0.547, allocations: 0.7531 MB / 0.581 GB, free: 1.344 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5471, allocations: 305.1 kB / 0.5812 GB, free: 1.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.5496, allocations: 1.237 MB / 0.5825 GB, free: 15.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004231/0.5538, allocations: 3.3 MB / 0.5857 GB, free: 11.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006889/0.5607, allocations: 4.886 MB / 0.5904 GB, free: 5.938 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.293e-05/0.5608, allocations: 21.31 kB / 0.5905 GB, free: 5.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009709/0.5705, allocations: 4.636 MB / 0.595 GB, free: 1.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.722e-05/0.5706, allocations: 42.06 kB / 0.595 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001437/0.5707, allocations: 76 kB / 0.5951 GB, free: 1.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006756/0.5714, allocations: 229.4 kB / 0.5953 GB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002984/0.5744, allocations: 0.8265 MB / 0.5961 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/0.5785, allocations: 2.736 MB / 0.5988 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003255/0.5817, allocations: 183.9 kB / 0.599 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008841/0.5826, allocations: 227.1 kB / 0.5992 GB, free: 13.15 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00389/0.5865, allocations: 1.581 MB / 0.6007 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006343/0.5871, allocations: 222.5 kB / 0.601 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00428/0.5914, allocations: 1.924 MB / 0.6028 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001116/0.5915, allocations: 31.14 kB / 0.6029 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.5915, allocations: 7.922 kB / 0.6029 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.5915, allocations: 11.92 kB / 0.6029 GB, free: 9.348 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.6045, allocations: 5.499 MB / 0.6083 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.6045, allocations: 4 kB / 0.6083 GB, free: 3.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009358/0.6055, allocations: 216.1 kB / 0.6085 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004525/0.6059, allocations: 136.8 kB / 0.6086 GB, free: 3.406 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.6061, allocations: 27.98 kB / 0.6086 GB, free: 3.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/0.6095, allocations: 2.405 MB / 0.611 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/0.6095, allocations: 11.88 kB / 0.611 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/0.6157, allocations: 3.061 MB / 0.614 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.6169, allocations: 226.5 kB / 0.6142 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006618/0.6175, allocations: 25.58 kB / 0.6142 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.6188, allocations: 75.92 kB / 0.6143 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.619, allocations: 96.77 kB / 0.6144 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.6191, allocations: 45.94 kB / 0.6144 GB, free: 13.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003541/0.6227, allocations: 1.615 MB / 0.616 GB, free: 11.64 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6227, allocations: 0 / 0.616 GB, free: 11.64 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003735/0.6264, allocations: 0.6406 MB / 0.6166 GB, free: 11 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00579/0.6322, allocations: 3.7 MB / 0.6202 GB, free: 7.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00591/0.6381, allocations: 2.924 MB / 0.6231 GB, free: 4.324 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.427e-06/0.6381, allocations: 0 / 0.6231 GB, free: 4.324 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.64, allocations: 0.956 MB / 0.624 GB, free: 3.352 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003411/0.6434, allocations: 401 kB / 0.6244 GB, free: 2.969 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06055/0.7039, allocations: 26.86 MB / 0.6506 GB, free: 5.371 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004638/0.7086, allocations: 2.032 MB / 0.6526 GB, free: 3.309 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003366/0.7119, allocations: 1.141 MB / 0.6537 GB, free: 2.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002459/0.7144, allocations: 1.308 MB / 0.655 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7144, allocations: 0 / 0.655 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1486/0.863, allocations: 45.87 MB / 0.6998 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/15.01, allocations: 3.938 kB / 0.6998 GB, free: 3.461 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.792004009708762] Failed to read output from testmodel.py, exit status != 0: 15.154665984213352 15.180273613 14.777275966 Calling exit ...