Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 192.9 kB / 22.23 MB, free: 5.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002573/0.002573, allocations: 285.5 kB / 306.5 MB, free: 8.316 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.288/1.288, allocations: 180.9 MB / 0.53 GB, free: 14.43 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 100.8 kB / 0.7308 GB, free: 38.86 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1589, allocations: 94.19 MB / 0.8228 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.0023/0.1612, allocations: 1.285 MB / 0.8241 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.1776/0.3388, allocations: 147.5 MB / 0.9681 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.3388, allocations: 0 / 0.9681 GB, free: 12.51 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.569e-05/0.3389, allocations: 7.922 kB / 0.9681 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.476e-05/0.3389, allocations: 3.938 kB / 0.9681 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.3393, allocations: 99.56 kB / 0.9682 GB, free: 12.4 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.146e-05/0.3394, allocations: 27.92 kB / 0.9682 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.3395, allocations: 11.97 kB / 0.9682 GB, free: 12.36 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.161e-05/0.3395, allocations: 15.94 kB / 0.9682 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.45e-05/0.3396, allocations: 7.984 kB / 0.9682 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.3396, allocations: 7.938 kB / 0.9682 GB, free: 12.33 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002709/0.3399, allocations: 87.75 kB / 0.9683 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.3399, allocations: 7.938 kB / 0.9683 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.3399, allocations: 15.92 kB / 0.9684 GB, free: 12.22 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.3401, allocations: 75.75 kB / 0.9684 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3401, allocations: 0 / 0.9684 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.042e-06/0.3401, allocations: 0 / 0.9684 GB, free: 12.15 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.3401, allocations: 0 / 0.9684 GB, free: 12.15 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004219/0.3405, allocations: 274.2 kB / 0.9687 GB, free: 11.85 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3406, allocations: 12.62 kB / 0.9687 GB, free: 11.84 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.3408, allocations: 12.92 kB / 0.9687 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.472e-05/0.3409, allocations: 106.5 kB / 0.9688 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.3409, allocations: 15.94 kB / 0.9688 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.3409, allocations: 7.953 kB / 0.9688 GB, free: 11.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.341, allocations: 45.67 kB / 0.9689 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.341, allocations: 0 / 0.9689 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.341, allocations: 8 kB / 0.9689 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.341, allocations: 3.984 kB / 0.9689 GB, free: 11.61 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.483e-05/0.3411, allocations: 15.92 kB / 0.9689 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.3413, allocations: 136.7 kB / 0.969 GB, free: 11.42 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.3414, allocations: 54.62 kB / 0.9691 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.167e-05/0.3414, allocations: 16.84 kB / 0.9691 GB, free: 11.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.3414, allocations: 4 kB / 0.9691 GB, free: 11.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3415, allocations: 30.56 kB / 0.9691 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.3415, allocations: 0 / 0.9691 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000737/0.3422, allocations: 297 kB / 0.9694 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.3423, allocations: 59.41 kB / 0.9695 GB, free: 10.9 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.515e-05/0.3423, allocations: 93.84 kB / 0.9696 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3424, allocations: 29.7 kB / 0.9696 GB, free: 10.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.3424, allocations: 80.14 kB / 0.9697 GB, free: 10.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.112e-05/0.3425, allocations: 47.78 kB / 0.9697 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.3425, allocations: 25.72 kB / 0.9697 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3426, allocations: 322.8 kB / 0.97 GB, free: 10.28 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.454e-05/0.3427, allocations: 20.12 kB / 0.9701 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.183e-05/0.3428, allocations: 40.33 kB / 0.9701 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.178e-05/0.3428, allocations: 61.64 kB / 0.9702 GB, free: 10.15 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.3428, allocations: 0 / 0.9702 GB, free: 10.15 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001443/0.343, allocations: 93.67 kB / 0.9703 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.343, allocations: 4 kB / 0.9703 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.343, allocations: 0 / 0.9703 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.343, allocations: 4 kB / 0.9703 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3431, allocations: 31.86 kB / 0.9703 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.3431, allocations: 4 kB / 0.9703 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.133e-05/0.3432, allocations: 0 / 0.9703 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3432, allocations: 8.703 kB / 0.9703 GB, free: 10 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/0.3433, allocations: 114.4 kB / 0.9704 GB, free: 9.883 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.3433, allocations: 7.953 kB / 0.9704 GB, free: 9.875 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.3433, allocations: 7.906 kB / 0.9704 GB, free: 9.871 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3433, allocations: 7.984 kB / 0.9704 GB, free: 9.863 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3433, allocations: 0 / 0.9704 GB, free: 9.863 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3433, allocations: 11.88 kB / 0.9704 GB, free: 9.852 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.3435, allocations: 136.7 kB / 0.9706 GB, free: 9.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3435, allocations: 4 kB / 0.9706 GB, free: 9.672 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.3436, allocations: 23.98 kB / 0.9706 GB, free: 9.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3436, allocations: 0 / 0.9706 GB, free: 9.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3436, allocations: 0 / 0.9706 GB, free: 9.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3436, allocations: 4 kB / 0.9706 GB, free: 9.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3436, allocations: 0 / 0.9706 GB, free: 9.645 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.3438, allocations: 137 kB / 0.9707 GB, free: 9.492 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.139e-05/0.3439, allocations: 3.953 kB / 0.9707 GB, free: 9.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.3439, allocations: 7.938 kB / 0.9708 GB, free: 9.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.889e-05/0.344, allocations: 8.031 kB / 0.9708 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-05/0.344, allocations: 11.92 kB / 0.9708 GB, free: 9.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.344, allocations: 4 kB / 0.9708 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.685e-05/0.344, allocations: 75.28 kB / 0.9708 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6e-08/0.344, allocations: 0 / 0.9708 GB, free: 9.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002109/0.3442, allocations: 19.94 kB / 0.9709 GB, free: 9.363 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001392/0.3444, allocations: 103.3 kB / 0.971 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.3445, allocations: 55.91 kB / 0.971 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3445, allocations: 0 / 0.971 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.097e-05/0.3446, allocations: 23.98 kB / 0.971 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.3448, allocations: 12.25 kB / 0.9711 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006349/0.3454, allocations: 329.3 kB / 0.9714 GB, free: 8.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.3458, allocations: 0.6884 MB / 0.972 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.098e-05/0.3458, allocations: 8.672 kB / 0.972 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.049e-05/0.3458, allocations: 19.44 kB / 0.9721 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.3458, allocations: 0 / 0.9721 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of Templates: time 0.003163/0.349, allocations: 0.7079 MB / 0.9728 GB, free: 7.371 MB / 0.7169 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.236720500513911] Failed to read output from testmodel.py, exit status != 0: 0.35685758013278246 0.37284339 0.029609645 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f9e5a1f17b0>