Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001511/0.001512, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2244/0.2244, allocations: 46.11 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3279, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.194/0.522, allocations: 152.3 MB / 0.6793 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001691/0.5237, allocations: 1.055 MB / 0.6803 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.449e-05/0.5238, allocations: 0 / 0.6803 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.5241, allocations: 31.77 kB / 0.6804 GB, free: 7.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0008329/0.525, allocations: 274.5 kB / 0.6806 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.5254, allocations: 107.7 kB / 0.6807 GB, free: 7.426 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.5257, allocations: 187.2 kB / 0.6809 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.5258, allocations: 7.938 kB / 0.6809 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.526, allocations: 91.62 kB / 0.681 GB, free: 7.145 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.5261, allocations: 63.75 kB / 0.681 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.5261, allocations: 4 kB / 0.6811 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006245/0.5268, allocations: 271.7 kB / 0.6813 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.775e-05/0.5269, allocations: 23.92 kB / 0.6813 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.216e-05/0.5269, allocations: 43.8 kB / 0.6814 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005687/0.5275, allocations: 282.9 kB / 0.6816 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.5275, allocations: 0 / 0.6816 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.113e-06/0.5275, allocations: 0 / 0.6816 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.5276, allocations: 0 / 0.6816 GB, free: 6.473 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006177/0.5282, allocations: 422.9 kB / 0.682 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.5282, allocations: 12.03 kB / 0.6821 GB, free: 6 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.5283, allocations: 34.75 kB / 0.6821 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/0.5304, allocations: 200.6 kB / 0.6823 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.5308, allocations: 211.4 kB / 0.6825 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.5308, allocations: 4 kB / 0.6825 GB, free: 5.512 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/0.5309, allocations: 11.98 kB / 0.6825 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.5314, allocations: 220.1 kB / 0.6827 GB, free: 5.27 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.5314, allocations: 4 kB / 0.6827 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.5314, allocations: 7.938 kB / 0.6827 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.5315, allocations: 4 kB / 0.6827 GB, free: 5.254 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.5319, allocations: 159.9 kB / 0.6829 GB, free: 5.098 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.533, allocations: 0.5871 MB / 0.6835 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.5334, allocations: 134.5 kB / 0.6836 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.5335, allocations: 68.83 kB / 0.6836 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.5336, allocations: 7.984 kB / 0.6837 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.5336, allocations: 38.55 kB / 0.6837 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.654e-06/0.5336, allocations: 7.938 kB / 0.6837 GB, free: 4.18 MB / 0.5294 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005301/0.5389, allocations: 1.299 MB / 0.685 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.539, allocations: 59.34 kB / 0.685 GB, free: 2.719 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.5391, allocations: 117.8 kB / 0.6851 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.5391, allocations: 33.7 kB / 0.6852 GB, free: 2.555 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.5392, allocations: 91.98 kB / 0.6853 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.466e-05/0.5393, allocations: 71.42 kB / 0.6853 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.5394, allocations: 57.64 kB / 0.6854 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.5395, allocations: 322.8 kB / 0.6857 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.5397, allocations: 71.95 kB / 0.6858 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.5399, allocations: 107.2 kB / 0.6859 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.5403, allocations: 179.3 kB / 0.686 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.5403, allocations: 0 / 0.686 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005641/0.5409, allocations: 259.4 kB / 0.6863 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.5409, allocations: 10.66 kB / 0.6863 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.5409, allocations: 0 / 0.6863 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.5411, allocations: 48.83 kB / 0.6863 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.5414, allocations: 55.89 kB / 0.6864 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004808/0.5419, allocations: 0.568 MB / 0.6869 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.5421, allocations: 12.02 kB / 0.687 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.5422, allocations: 24 kB / 0.687 GB, free: 0.625 MB / 0.5294 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 (23): * Single equations (assignments): 22 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.5423, allocations: 125.8 kB / 0.6871 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.5424, allocations: 11.89 kB / 0.6871 GB, free: 492 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007539/0.5431, allocations: 354.8 kB / 0.6874 GB, free: 136 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.5431, allocations: 8 kB / 0.6875 GB, free: 128 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5431, allocations: 0 / 0.6875 GB, free: 128 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.5432, allocations: 0 / 0.6875 GB, free: 128 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.5442, allocations: 0.6191 MB / 0.6881 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5443, allocations: 0 / 0.6881 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.5446, allocations: 67.98 kB / 0.6881 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.821e-05/0.5447, allocations: 16.84 kB / 0.6881 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.5447, allocations: 15.98 kB / 0.6882 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.5458, allocations: 1.38 MB / 0.6895 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5458, allocations: 0 / 0.6895 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007267/0.5466, allocations: 438.6 kB / 0.6899 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-05/0.5466, allocations: 85.09 kB / 0.69 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.5467, allocations: 4 kB / 0.69 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.5469, allocations: 8 kB / 0.69 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.154e-05/0.547, allocations: 23.97 kB / 0.69 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.547, allocations: 31.98 kB / 0.6901 GB, free: 13.19 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.234e-05/0.5471, allocations: 99.19 kB / 0.6902 GB, free: 13.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/0.5471, allocations: 0 / 0.6902 GB, free: 13.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004054/0.5475, allocations: 79.94 kB / 0.6902 GB, free: 13.01 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001347/0.5489, allocations: 1.007 MB / 0.6912 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005337/0.5494, allocations: 210.7 kB / 0.6914 GB, free: 11.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.5494, allocations: 0 / 0.6914 GB, free: 11.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003609/0.5498, allocations: 218.6 kB / 0.6916 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.5503, allocations: 48.27 kB / 0.6917 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.5531, allocations: 2.08 MB / 0.6937 GB, free: 9.281 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.5534, allocations: 0.7085 MB / 0.6944 GB, free: 8.547 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003137/0.5537, allocations: 73.39 kB / 0.6945 GB, free: 8.477 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.5539, allocations: 67.41 kB / 0.6945 GB, free: 8.41 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.554, allocations: 0 / 0.6945 GB, free: 8.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0365/0.5905, allocations: 7.343 MB / 0.7017 GB, free: 1.191 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.71, allocations: 15.73 kB / 0.7017 GB, free: 1.18 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1)