Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.001765/0.001765, allocations: 119.6 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.002233/0.002233, allocations: 211 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.529/1.529, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.04766/0.04766, allocations: 9.232 MB / 318.8 MB, free: 15.51 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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.002566/0.002566, allocations: 67.45 kB / 443.2 MB, free: 39.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1531, allocations: 55.44 MB / 498.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.008692/0.1617, allocations: 8.466 MB / 0.4953 GB, free: 14.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006533/0.1683, allocations: 2.655 MB / 0.4979 GB, free: 11.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.1699, allocations: 39.88 kB / 0.4979 GB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.1709, allocations: 381.4 kB / 0.4983 GB, free: 11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004048/0.175, allocations: 1.451 MB / 0.4997 GB, free: 9.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.1754, allocations: 139.8 kB / 0.4998 GB, free: 9.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003808/0.1793, allocations: 2.525 MB / 0.5023 GB, free: 6.879 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00134/0.1806, allocations: 0.7687 MB / 0.503 GB, free: 6.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.1821, allocations: 0.9299 MB / 0.5039 GB, free: 5.145 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.1841, allocations: 1.436 MB / 0.5053 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004578/0.1845, allocations: 232 kB / 0.5056 GB, free: 3.477 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.1862, allocations: 0.8698 MB / 0.5064 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.1875, allocations: 1.242 MB / 0.5076 GB, free: 1.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.1893, allocations: 1.565 MB / 0.5091 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007329/0.1966, allocations: 5.019 MB / 0.514 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1966, allocations: 4 kB / 0.5141 GB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.1966, allocations: 3.984 kB / 0.5141 GB, free: 10.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001419/0.1968, allocations: 3.938 kB / 0.5141 GB, free: 10.73 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01396/0.2107, allocations: 4.472 MB / 0.5184 GB, free: 6.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.2108, allocations: 16.02 kB / 0.5184 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001485/0.2109, allocations: 72.02 kB / 0.5185 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009883/0.2119, allocations: 0.5433 MB / 0.519 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007249/0.2192, allocations: 1.781 MB / 0.5208 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003389/0.2226, allocations: 1.373 MB / 0.5221 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.2227, allocations: 155.6 kB / 0.5223 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006099/0.2233, allocations: 203.8 kB / 0.5225 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.2378, allocations: 8.247 MB / 0.5305 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-05/0.2378, allocations: 27.8 kB / 0.5305 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002983/0.2381, allocations: 95.86 kB / 0.5306 GB, free: 9.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/0.2414, allocations: 1.903 MB / 0.5325 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/0.2583, allocations: 7.426 MB / 0.5397 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04502/0.3033, allocations: 25.57 MB / 0.5647 GB, free: 5.797 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006998/0.3103, allocations: 2.536 MB / 0.5672 GB, free: 3.145 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.3119, allocations: 0.8688 MB / 0.568 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008093/0.3199, allocations: 5.103 MB / 0.573 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.934e-05/0.32, allocations: 47.56 kB / 0.5731 GB, free: 12.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=148): time 4.178e-06/0.32, allocations: 0 / 0.5731 GB, free: 12.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=176): time 0.01444/0.3344, allocations: 5.501 MB / 0.5784 GB, free: 7.109 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.3345, allocations: 68.72 kB / 0.5785 GB, free: 7.027 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004387/0.3389, allocations: 2.623 MB / 0.5811 GB, free: 4.375 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.3392, allocations: 57.56 kB / 0.5811 GB, free: 4.312 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.341, allocations: 2.181 MB / 0.5833 GB, free: 2.109 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008305/0.3418, allocations: 0.6743 MB / 0.5839 GB, free: 1.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/0.343, allocations: 0.8302 MB / 0.5847 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3431, allocations: 301.1 kB / 0.585 GB, free: 296 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2791/0.6222, allocations: 1.37 MB / 0.5864 GB, free: 88.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004722/0.6269, allocations: 3.624 MB / 0.5899 GB, free: 85.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007169/0.6341, allocations: 5.411 MB / 0.5952 GB, free: 81.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.273e-05/0.6342, allocations: 22.56 kB / 0.5952 GB, free: 81.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.0121/0.6463, allocations: 5.23 MB / 0.6003 GB, free: 79.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.81e-05/0.6464, allocations: 38.28 kB / 0.6003 GB, free: 79.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/0.6465, allocations: 78.56 kB / 0.6004 GB, free: 79.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.6478, allocations: 357.9 kB / 0.6008 GB, free: 79.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/0.6506, allocations: 0.9185 MB / 0.6017 GB, free: 79.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/0.6551, allocations: 4.177 MB / 0.6057 GB, free: 76.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/0.6579, allocations: 201.1 kB / 0.6059 GB, free: 76.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/0.6583, allocations: 244.2 kB / 0.6062 GB, free: 76.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (498): * Single equations (assignments): 493 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001969/0.6603, allocations: 1.61 MB / 0.6077 GB, free: 76.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.6606, allocations: 240.5 kB / 0.608 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.664, allocations: 2.329 MB / 0.6102 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.845e-05/0.664, allocations: 31.5 kB / 0.6103 GB, free: 74.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.6641, allocations: 7.938 kB / 0.6103 GB, free: 74.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.6641, allocations: 9.438 kB / 0.6103 GB, free: 74.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009047/0.6731, allocations: 6.435 MB / 0.6166 GB, free: 69.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/0.6731, allocations: 4 kB / 0.6166 GB, free: 69.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000836/0.674, allocations: 239.7 kB / 0.6168 GB, free: 69.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006081/0.6746, allocations: 261.8 kB / 0.617 GB, free: 68.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-05/0.6747, allocations: 35.98 kB / 0.6171 GB, free: 68.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003221/0.6779, allocations: 3.417 MB / 0.6204 GB, free: 65.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6779, allocations: 7.938 kB / 0.6204 GB, free: 65.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004341/0.6822, allocations: 3.604 MB / 0.6239 GB, free: 61.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/0.6828, allocations: 315.5 kB / 0.6242 GB, free: 61.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/0.6831, allocations: 35.94 kB / 0.6243 GB, free: 61.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007945/0.6839, allocations: 77.33 kB / 0.6244 GB, free: 61.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.6841, allocations: 109.8 kB / 0.6245 GB, free: 61.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.523e-05/0.6842, allocations: 54.88 kB / 0.6245 GB, free: 61.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002052/0.6862, allocations: 1.676 MB / 0.6261 GB, free: 59.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6862, allocations: 4 kB / 0.6261 GB, free: 59.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003127/0.6893, allocations: 0.7054 MB / 0.6268 GB, free: 58.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004391/0.6937, allocations: 4.253 MB / 0.631 GB, free: 54.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005097/0.6988, allocations: 3.315 MB / 0.6342 GB, free: 51.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.6988, allocations: 1.125 kB / 0.6342 GB, free: 51.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.7002, allocations: 1.098 MB / 0.6353 GB, free: 49.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.7022, allocations: 413.4 kB / 0.6357 GB, free: 49.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03716/0.7393, allocations: 29.25 MB / 0.6643 GB, free: 17.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/0.7413, allocations: 2.622 MB / 0.6668 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002302/0.7436, allocations: 1.261 MB / 0.6681 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/0.7449, allocations: 1.354 MB / 0.6694 GB, free: 12.09 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.7449, allocations: 0 / 0.6694 GB, free: 12.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09416/0.8391, allocations: 49.88 MB / 0.7181 GB, free: 10.41 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.95/17.79, allocations: 15.8 kB / 0.7181 GB, free: 10.4 MB / 494.1 MB " [Timeout remaining time 642] (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.01842713204678] Failed to read output from testmodel.py, exit status != 0: 17.963561923999805 17.98253378 17.781821718 Calling exit ...