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.001409/0.001409, allocations: 110.4 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.001718/0.001718, allocations: 217 kB / 22.25 MB, free: 5.121 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.664/1.664, allocations: 230.6 MB / 256 MB, free: 7.961 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.05468/0.05468, allocations: 9.235 MB / 321.7 MB, free: 10 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.002234/0.002234, allocations: 71.84 kB / 447.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1525, allocations: 55.47 MB / 0.4914 GB, free: 7.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01199/0.1645, allocations: 8.595 MB / 0.4998 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005997/0.1705, allocations: 2.667 MB / 0.5024 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000887/0.1714, allocations: 39.88 kB / 0.5025 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009109/0.1723, allocations: 393.3 kB / 0.5028 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003717/0.176, allocations: 1.416 MB / 0.5042 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.1764, allocations: 151.8 kB / 0.5044 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.1797, allocations: 2.521 MB / 0.5068 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.1807, allocations: 0.8235 MB / 0.5076 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.182, allocations: 0.9378 MB / 0.5085 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001915/0.1839, allocations: 1.44 MB / 0.5099 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000315/0.1842, allocations: 236 kB / 0.5102 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.1861, allocations: 0.8932 MB / 0.511 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.1875, allocations: 1.242 MB / 0.5123 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001777/0.1893, allocations: 1.573 MB / 0.5138 GB, free: 252 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3483/0.5376, allocations: 5.067 MB / 0.5187 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.5376, allocations: 0 / 0.5187 GB, free: 12.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5376, allocations: 0 / 0.5187 GB, free: 12.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.171e-05/0.5376, allocations: 3.844 kB / 0.5187 GB, free: 12.07 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.01155/0.5492, allocations: 4.318 MB / 0.523 GB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.5492, allocations: 10.06 kB / 0.523 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001099/0.5503, allocations: 0.5408 MB / 0.5235 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007836/0.5582, allocations: 1.816 MB / 0.5253 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003403/0.5616, allocations: 1.298 MB / 0.5265 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.5617, allocations: 151.8 kB / 0.5267 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.5622, allocations: 197.2 kB / 0.5269 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.5769, allocations: 8.193 MB / 0.5349 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/0.577, allocations: 18.03 kB / 0.5349 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002838/0.5773, allocations: 91.83 kB / 0.535 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003809/0.5811, allocations: 1.915 MB / 0.5368 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.5957, allocations: 7.437 MB / 0.5441 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03782/0.6335, allocations: 24.78 MB / 0.5683 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005557/0.6391, allocations: 1.873 MB / 0.5701 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.6406, allocations: 0.8079 MB / 0.5709 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006823/0.6474, allocations: 2.861 MB / 0.5737 GB, free: 8.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.6474, allocations: 43.56 kB / 0.5738 GB, free: 8.762 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.457e-06/0.6474, allocations: 0.7031 kB / 0.5738 GB, free: 8.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01177/0.6592, allocations: 4.7 MB / 0.5784 GB, free: 4.078 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.6593, allocations: 65.91 kB / 0.5784 GB, free: 4.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004105/0.6634, allocations: 2.509 MB / 0.5809 GB, free: 1.465 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.46e-05/0.6634, allocations: 41.7 kB / 0.5809 GB, free: 1.418 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001946/0.6654, allocations: 2.157 MB / 0.583 GB, free: 15.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005419/0.6659, allocations: 0.5548 MB / 0.5836 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/0.6672, allocations: 0.758 MB / 0.5843 GB, free: 13.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.6674, allocations: 301.1 kB / 0.5846 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/0.6696, allocations: 1.233 MB / 0.5858 GB, free: 12.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004877/0.6745, allocations: 3.308 MB / 0.589 GB, free: 8.145 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006975/0.6815, allocations: 4.884 MB / 0.5938 GB, free: 2.551 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-05/0.6815, allocations: 22.62 kB / 0.5938 GB, free: 2.531 MB / 430.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.009067/0.6906, allocations: 4.64 MB / 0.5983 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.285e-05/0.6906, allocations: 36 kB / 0.5984 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-05/0.6907, allocations: 72.09 kB / 0.5984 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007168/0.6914, allocations: 232.7 kB / 0.5987 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/0.6941, allocations: 0.8227 MB / 0.5995 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.6978, allocations: 2.758 MB / 0.6022 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002576/0.7003, allocations: 191.9 kB / 0.6023 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003154/0.7007, allocations: 222.3 kB / 0.6026 GB, free: 9.707 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.003752/0.7044, allocations: 1.583 MB / 0.6041 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.7048, allocations: 226.5 kB / 0.6043 GB, free: 7.891 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/0.7088, allocations: 1.931 MB / 0.6062 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.862e-05/0.7089, allocations: 23.98 kB / 0.6062 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.7089, allocations: 4 kB / 0.6062 GB, free: 5.922 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.7089, allocations: 12.61 kB / 0.6062 GB, free: 5.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/0.7208, allocations: 5.777 MB / 0.6119 GB, free: 28 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.7208, allocations: 4 kB / 0.6119 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.7218, allocations: 215.7 kB / 0.6121 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003831/0.7222, allocations: 139 kB / 0.6122 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.982e-05/0.7223, allocations: 35.12 kB / 0.6123 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003332/0.7256, allocations: 2.413 MB / 0.6146 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.7256, allocations: 7.938 kB / 0.6146 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005672/0.7313, allocations: 3.071 MB / 0.6176 GB, free: 9.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007562/0.7321, allocations: 222.5 kB / 0.6178 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.7323, allocations: 27.94 kB / 0.6179 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009652/0.7333, allocations: 67.92 kB / 0.6179 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.7335, allocations: 102.7 kB / 0.618 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.7336, allocations: 50.11 kB / 0.6181 GB, free: 9.523 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003396/0.737, allocations: 1.608 MB / 0.6196 GB, free: 7.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.737, allocations: 0 / 0.6196 GB, free: 7.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003753/0.7407, allocations: 0.6405 MB / 0.6203 GB, free: 7.258 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.005374/0.7461, allocations: 3.701 MB / 0.6239 GB, free: 3.488 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005735/0.7519, allocations: 2.931 MB / 0.6267 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.7519, allocations: 4.312 kB / 0.6268 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.7533, allocations: 0.9466 MB / 0.6277 GB, free: 15.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.7554, allocations: 407.2 kB / 0.6281 GB, free: 15.22 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04621/0.8016, allocations: 26.86 MB / 0.6543 GB, free: 1.613 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003436/0.805, allocations: 2.592 MB / 0.6568 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003024/0.8081, allocations: 1.14 MB / 0.6579 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/0.8099, allocations: 1.296 MB / 0.6592 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.8099, allocations: 4 kB / 0.6592 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/0.9351, allocations: 48.36 MB / 0.7064 GB, free: 12.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.74/20.67, allocations: 14.11 kB / 0.7064 GB, free: 12.44 MB / 0.545 GB " [Timeout remaining time 639] (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: 24.15999517799355] Failed to read output from testmodel.py, exit status != 0: 20.81586765917018 21.099990407 20.291800021 Calling exit ...