Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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: "" <> buildModelFMU(BuildingSystems.Media.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001791/0.001791, allocations: 267.1 kB / 291.2 MB, free: 1.898 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8005/0.8005, allocations: 144.6 MB / 487 MB, free: 7.223 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004346, allocations: 12.84 kB / 0.5684 GB, free: 38.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1386, allocations: 83.09 MB / 0.6495 GB, free: 3.555 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirDerivativeCheck): time 0.001214/0.1398, allocations: 1.019 MB / 0.6505 GB, free: 2.523 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1279/0.2677, allocations: 125.2 MB / 0.7727 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.42e-05/0.2678, allocations: 0 / 0.7727 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.923e-05/0.2679, allocations: 7.984 kB / 0.7728 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.372e-05/0.2679, allocations: 7.984 kB / 0.7728 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007533/0.2687, allocations: 235.2 kB / 0.773 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.344e-05/0.2688, allocations: 39.94 kB / 0.773 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.115e-05/0.2689, allocations: 8 kB / 0.773 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.928e-05/0.2689, allocations: 23.92 kB / 0.7731 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.218e-05/0.269, allocations: 31.89 kB / 0.7731 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.269, allocations: 4 kB / 0.7731 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006652/0.2697, allocations: 283.5 kB / 0.7734 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.256e-05/0.2698, allocations: 11.98 kB / 0.7734 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.2698, allocations: 37.64 kB / 0.7734 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.27, allocations: 100 kB / 0.7735 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.185e-06/0.27, allocations: 0 / 0.7735 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.203e-06/0.27, allocations: 4 kB / 0.7735 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.27, allocations: 0 / 0.7735 GB, free: 4.293 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003959/0.2704, allocations: 375.2 kB / 0.7739 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2705, allocations: 8.031 kB / 0.7739 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.2705, allocations: 42.55 kB / 0.7739 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003867/0.2709, allocations: 27.97 kB / 0.7739 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.271, allocations: 174.9 kB / 0.7741 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.2711, allocations: 12 kB / 0.7741 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.2711, allocations: 4 kB / 0.7741 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.2713, allocations: 85.47 kB / 0.7742 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2713, allocations: 0 / 0.7742 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2713, allocations: 7.938 kB / 0.7742 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2713, allocations: 0 / 0.7742 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.565e-05/0.2714, allocations: 47.95 kB / 0.7743 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002/0.2716, allocations: 193.5 kB / 0.7744 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.2718, allocations: 98.61 kB / 0.7745 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.084e-05/0.2719, allocations: 4 kB / 0.7745 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.2719, allocations: 34.56 kB / 0.7746 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.2719, allocations: 0 / 0.7746 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19): time 0.001294/0.2732, allocations: 0.5428 MB / 0.7751 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.2732, allocations: 59.39 kB / 0.7752 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.023e-05/0.2733, allocations: 89.86 kB / 0.7752 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.2733, allocations: 37.64 kB / 0.7753 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.494e-05/0.2734, allocations: 80.52 kB / 0.7754 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.2734, allocations: 79.03 kB / 0.7754 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-06/0.2735, allocations: 4 kB / 0.7754 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.032e-05/0.2736, allocations: 322.8 kB / 0.7757 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.676e-05/0.2736, allocations: 35.97 kB / 0.7758 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.277e-05/0.2737, allocations: 67.41 kB / 0.7758 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.389e-05/0.2738, allocations: 40 kB / 0.7759 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2738, allocations: 0 / 0.7759 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002028/0.274, allocations: 161.5 kB / 0.776 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.274, allocations: 4 kB / 0.776 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2741, allocations: 4.062 kB / 0.776 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2741, allocations: 4 kB / 0.776 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.2743, allocations: 43.92 kB / 0.7761 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2743, allocations: 0 / 0.7761 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.575e-05/0.2743, allocations: 8 kB / 0.7761 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.2743, allocations: 4 kB / 0.7761 GB, free: 1.355 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.2745, allocations: 129.7 kB / 0.7762 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.2745, allocations: 8 kB / 0.7762 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.047e-05/0.2745, allocations: 20.44 kB / 0.7762 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2745, allocations: 0 / 0.7762 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2746, allocations: 0 / 0.7762 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2746, allocations: 0 / 0.7762 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.2747, allocations: 197.6 kB / 0.7764 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2747, allocations: 0 / 0.7764 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.2749, allocations: 39.92 kB / 0.7765 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.275, allocations: 0 / 0.7765 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.275, allocations: 11.98 kB / 0.7765 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.275, allocations: 0 / 0.7765 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.275, allocations: 4 kB / 0.7765 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.2753, allocations: 205.8 kB / 0.7767 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.263e-05/0.2754, allocations: 93.09 kB / 0.7768 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.2754, allocations: 0 / 0.7768 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2756, allocations: 11.98 kB / 0.7768 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.2756, allocations: 11.98 kB / 0.7768 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.2756, allocations: 11.94 kB / 0.7768 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.124e-05/0.2757, allocations: 79.28 kB / 0.7769 GB, free: 468 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2757, allocations: 0 / 0.7769 GB, free: 468 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002313/0.2759, allocations: 28 kB / 0.7769 GB, free: 440 kB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2591/0.535, allocations: 0.746 MB / 0.7776 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002391/0.5353, allocations: 100.3 kB / 0.7777 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5353, allocations: 1.531 kB / 0.7777 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.352e-05/0.5354, allocations: 54.36 kB / 0.7778 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.5356, allocations: 14.77 kB / 0.7778 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.5368, allocations: 1.449 MB / 0.7792 GB, free: 128.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.928e-05/0.537, allocations: 0.7053 MB / 0.7799 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001183/0.5371, allocations: 23.81 kB / 0.7799 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.5371, allocations: 23.86 kB / 0.78 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.5371, allocations: 4 kB / 0.78 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01254/0.5497, allocations: 2.123 MB / 0.782 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/0.5499, allocations: 186.1 kB / 0.7822 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/2.15, allocations: 0 / 0.7822 GB, free: 127.4 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_AirDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: