Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.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) 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(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001421/0.001421, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001767/0.001767, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.224, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.02672/0.2508, allocations: 26.68 MB / 435.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02545/0.2763, allocations: 24.89 MB / 460.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003618/0.2767, allocations: 4 kB / 460.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008625/0.2775, allocations: 306.3 kB / 460.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008926/0.2785, allocations: 381.9 kB / 461 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01077/0.2893, allocations: 4.101 MB / 465.1 MB, free: 9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.2906, allocations: 0.9425 MB / 466.1 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.2909, allocations: 113 kB / 466.2 MB, free: 7.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007538/0.2917, allocations: 390.6 kB / 466.6 MB, free: 7.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.2921, allocations: 302.8 kB / 466.9 MB, free: 7.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.515e-05/0.2922, allocations: 36 kB / 466.9 MB, free: 7.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02048/0.3126, allocations: 10.43 MB / 477.3 MB, free: 12.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.313, allocations: 111.6 kB / 477.4 MB, free: 12.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000377/0.3133, allocations: 219.1 kB / 477.6 MB, free: 12.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03219/0.3455, allocations: 11.5 MB / 489.1 MB, free: 0.9375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.336e-05/0.3456, allocations: 4 kB / 489.1 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3456, allocations: 0 / 489.1 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3456, allocations: 4 kB / 489.1 MB, free: 0.9297 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.005317/0.351, allocations: 1.184 MB / 490.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.351, allocations: 8.031 kB / 490.3 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.463e-05/0.3511, allocations: 70.53 kB / 490.4 MB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005084/0.3516, allocations: 67.73 kB / 490.5 MB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.3521, allocations: 322.4 kB / 490.8 MB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.3521, allocations: 24.66 kB / 490.8 MB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.3522, allocations: 35.94 kB / 490.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008345/0.353, allocations: 463.8 kB / 491.3 MB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.353, allocations: 7.891 kB / 491.3 MB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.3531, allocations: 16 kB / 491.3 MB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.3531, allocations: 15.94 kB / 491.3 MB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.3538, allocations: 382.3 kB / 491.7 MB, free: 14.22 MB / 414.1 MB 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.003396/0.3572, allocations: 2.949 MB / 494.7 MB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007946/0.3581, allocations: 293.7 kB / 494.9 MB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.3583, allocations: 136.8 kB / 495.1 MB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002323/0.3606, allocations: 2.466 MB / 497.5 MB, free: 7.641 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.3607, allocations: 38.56 kB / 497.6 MB, free: 7.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.395e-06/0.3607, allocations: 0 / 497.6 MB, free: 7.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.005276/0.366, allocations: 1.298 MB / 498.9 MB, free: 6.219 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.366, allocations: 55.41 kB / 498.9 MB, free: 6.152 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.3663, allocations: 262.6 kB / 499.2 MB, free: 5.887 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.3664, allocations: 37.7 kB / 499.2 MB, free: 5.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.3665, allocations: 188.4 kB / 499.4 MB, free: 5.656 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.587e-05/0.3666, allocations: 122.9 kB / 499.5 MB, free: 5.535 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.3667, allocations: 86.08 kB / 499.6 MB, free: 5.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3668, allocations: 342.8 kB / 500 MB, free: 5.102 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.367, allocations: 116.8 kB / 0.4883 GB, free: 4.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.3673, allocations: 226 kB / 0.4886 GB, free: 4.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005086/0.3678, allocations: 373.5 kB / 0.4889 GB, free: 4.305 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3678, allocations: 0 / 0.4889 GB, free: 4.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008319/0.3687, allocations: 466.6 kB / 0.4894 GB, free: 3.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3687, allocations: 8.438 kB / 0.4894 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3687, allocations: 7.984 kB / 0.4894 GB, free: 3.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004698/0.3734, allocations: 229.4 kB / 0.4896 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.3739, allocations: 91.83 kB / 0.4897 GB, free: 3.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.3755, allocations: 1.939 MB / 0.4916 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.3758, allocations: 12.19 kB / 0.4916 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.3758, allocations: 24 kB / 0.4916 GB, free: 1.359 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002566/0.3761, allocations: 165.6 kB / 0.4918 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.3762, allocations: 39.75 kB / 0.4918 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.3772, allocations: 0.6854 MB / 0.4925 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.3773, allocations: 8 kB / 0.4925 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.3773, allocations: 3.938 kB / 0.4925 GB, free: 452 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001223/0.3785, allocations: 0.8632 MB / 0.4933 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.3805, allocations: 1.199 MB / 0.4945 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.3805, allocations: 0 / 0.4945 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.3808, allocations: 67.97 kB / 0.4946 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001587/0.3824, allocations: 176.5 kB / 0.4947 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.3825, allocations: 8 kB / 0.4947 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004063/0.3829, allocations: 0.5758 MB / 0.4953 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.3829, allocations: 3.938 kB / 0.4953 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.3839, allocations: 0.7423 MB / 0.496 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.3841, allocations: 108.8 kB / 0.4961 GB, free: 12.49 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.326e-05/0.3841, allocations: 8 kB / 0.4961 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.3843, allocations: 8 kB / 0.4962 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.3844, allocations: 23.91 kB / 0.4962 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.3844, allocations: 15.98 kB / 0.4962 GB, free: 12.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000251/0.3847, allocations: 221.9 kB / 0.4964 GB, free: 12.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3847, allocations: 0 / 0.4964 GB, free: 12.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005078/0.3898, allocations: 0.7598 MB / 0.4971 GB, free: 11.45 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.03854/0.4284, allocations: 7.577 MB / 0.5045 GB, free: 3.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.4299, allocations: 485.6 kB / 0.505 GB, free: 3.352 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4299, allocations: 0 / 0.505 GB, free: 3.352 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.4305, allocations: 220.2 kB / 0.5052 GB, free: 3.137 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.4322, allocations: 197.1 kB / 0.5054 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.4432, allocations: 4.047 MB / 0.5094 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005029/0.4437, allocations: 0.809 MB / 0.5102 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005868/0.4443, allocations: 187 kB / 0.5103 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.4446, allocations: 135.4 kB / 0.5105 GB, free: 13.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4446, allocations: 0 / 0.5105 GB, free: 13.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2682/0.7128, allocations: 33.76 MB / 0.5434 GB, free: 122.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/13.06, allocations: 0.625 kB / 0.5434 GB, free: 122.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.R134a.R134a1_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.R134a.R134a1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a1/R134a1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches