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.0009163/0.0009163, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001673/0.001673, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9251/0.9251, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.02741/0.02741, allocations: 7.123 MB / 266.3 MB, free: 6.309 MB / 250.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.212e-05, allocations: 2.281 kB / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.008001/0.008023, allocations: 7.424 MB / 399.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004318/0.01234, allocations: 2.515 MB / 402.3 MB, free: 10 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008003/0.01314, allocations: 39.88 kB / 402.4 MB, free: 9.961 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007535/0.01389, allocations: 377.4 kB / 402.7 MB, free: 9.59 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00229/0.01618, allocations: 1.512 MB / 404.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.01644, allocations: 127.8 kB / 404.4 MB, free: 7.945 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001908/0.01835, allocations: 2.578 MB / 406.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008848/0.01923, allocations: 0.7612 MB / 407.7 MB, free: 4.578 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001275/0.02051, allocations: 1.379 MB / 409.1 MB, free: 3.195 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.02228, allocations: 1.328 MB / 410.4 MB, free: 1.863 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005866/0.02286, allocations: 232 kB / 410.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.02402, allocations: 0.823 MB / 411.5 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1552/0.1793, allocations: 1.277 MB / 412.7 MB, free: 17.89 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.1805, allocations: 0.8312 MB / 413.6 MB, free: 17.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005999/0.1865, allocations: 5.013 MB / 418.6 MB, free: 17.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.1865, allocations: 0.7031 kB / 418.6 MB, free: 17.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1865, allocations: 0 / 418.6 MB, free: 17.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001785/0.1867, allocations: 1.219 kB / 418.6 MB, free: 17.65 MB / 330.7 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.01194/0.1986, allocations: 4.394 MB / 423 MB, free: 16.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.1987, allocations: 11.84 kB / 423 MB, free: 16.17 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.1998, allocations: 0.5447 MB / 423.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004254/0.2041, allocations: 1.852 MB / 425.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003181/0.2073, allocations: 1.309 MB / 426.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.2074, allocations: 153.8 kB / 426.8 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005108/0.2079, allocations: 198.5 kB / 427 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/0.2206, allocations: 8.236 MB / 435.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.318e-05/0.2207, allocations: 26.8 kB / 435.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002577/0.2209, allocations: 98 kB / 435.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001706/0.2226, allocations: 1.904 MB / 437.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.2336, allocations: 7.356 MB / 444.7 MB, free: 4.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02869/0.2623, allocations: 24.18 MB / 468.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/0.2663, allocations: 2.179 MB / 471 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009731/0.2673, allocations: 0.8626 MB / 471.9 MB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00419/0.2715, allocations: 2.905 MB / 474.8 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.2715, allocations: 43.56 kB / 474.8 MB, free: 6.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=148): time 4.508e-06/0.2715, allocations: 4 kB / 474.8 MB, free: 6.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=176): time 0.009292/0.2808, allocations: 5.656 MB / 480.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.2809, allocations: 71.81 kB / 480.6 MB, free: 0.793 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003501/0.2844, allocations: 2.738 MB / 483.3 MB, free: 14.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002245/0.2846, allocations: 57.7 kB / 483.4 MB, free: 13.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.2858, allocations: 2.162 MB / 485.5 MB, free: 11.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005419/0.2864, allocations: 0.6682 MB / 486.2 MB, free: 11.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008096/0.2872, allocations: 0.8174 MB / 487 MB, free: 10.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.643e-05/0.2872, allocations: 301.1 kB / 487.3 MB, free: 10.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.2888, allocations: 1.359 MB / 488.7 MB, free: 8.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.2915, allocations: 3.623 MB / 492.3 MB, free: 3.949 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005192/0.2967, allocations: 5.399 MB / 497.7 MB, free: 13.51 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.277e-05/0.2968, allocations: 23.94 kB / 497.7 MB, free: 13.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007689/0.3045, allocations: 5.213 MB / 0.4911 GB, free: 8.277 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.683e-05/0.3045, allocations: 42.19 kB / 0.4912 GB, free: 8.238 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.459e-05/0.3046, allocations: 80 kB / 0.4912 GB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000611/0.3052, allocations: 352.6 kB / 0.4916 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.307, allocations: 0.9201 MB / 0.4925 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003796/0.3108, allocations: 4.024 MB / 0.4964 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/0.3135, allocations: 215.9 kB / 0.4966 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006108/0.3142, allocations: 244 kB / 0.4968 GB, free: 2.316 MB / 394.7 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.003073/0.3172, allocations: 1.618 MB / 0.4984 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004531/0.3177, allocations: 238.4 kB / 0.4987 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00297/0.3207, allocations: 2.307 MB / 0.5009 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.398e-05/0.3207, allocations: 27.98 kB / 0.5009 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3207, allocations: 4 kB / 0.5009 GB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3207, allocations: 7.969 kB / 0.5009 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008782/0.3295, allocations: 6.102 MB / 0.5069 GB, free: 7.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.3295, allocations: 4 kB / 0.5069 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005297/0.3301, allocations: 243.7 kB / 0.5071 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004153/0.3305, allocations: 251.7 kB / 0.5074 GB, free: 7.418 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.144e-05/0.3306, allocations: 39.98 kB / 0.5074 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/0.3334, allocations: 3.284 MB / 0.5106 GB, free: 3.984 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.3334, allocations: 9.859 kB / 0.5106 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003914/0.3373, allocations: 3.567 MB / 0.5141 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.338, allocations: 242.4 kB / 0.5143 GB, free: 108 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.3382, allocations: 34.84 kB / 0.5144 GB, free: 76 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005081/0.3387, allocations: 79.95 kB / 0.5145 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.3389, allocations: 116.9 kB / 0.5146 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.861e-05/0.3389, allocations: 48 kB / 0.5146 GB, free: 15.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002138/0.3411, allocations: 1.668 MB / 0.5162 GB, free: 14.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3411, allocations: 0 / 0.5162 GB, free: 14.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002911/0.344, allocations: 0.706 MB / 0.5169 GB, free: 13.45 MB / 426.7 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.004242/0.3482, allocations: 4.218 MB / 0.521 GB, free: 9.152 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004789/0.353, allocations: 3.302 MB / 0.5243 GB, free: 5.848 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/0.353, allocations: 0 / 0.5243 GB, free: 5.848 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.3543, allocations: 1.091 MB / 0.5253 GB, free: 4.746 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.3561, allocations: 404.5 kB / 0.5257 GB, free: 4.359 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03879/0.3949, allocations: 29.09 MB / 0.5541 GB, free: 4.227 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002521/0.3974, allocations: 2.054 MB / 0.5561 GB, free: 2.137 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002275/0.3997, allocations: 1.275 MB / 0.5574 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/0.4016, allocations: 1.351 MB / 0.5587 GB, free: 15.54 MB / 474.7 MB Notification: Performance of SimCode: time 2.314e-06/0.4016, allocations: 3.938 kB / 0.5587 GB, free: 15.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2299/0.6316, allocations: 50.36 MB / 0.6079 GB, free: 140.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.84/9.472, allocations: 2.969 kB / 0.6079 GB, free: 140.7 MB / 474.7 MB " [Timeout remaining time 650] (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: 11.284904922358692] Failed to read output from testmodel.py, exit status != 0: 9.582371576689184 9.588404961 9.400252259 Calling exit ...