Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001444, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001716, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.208/0.208, allocations: 46.09 MB / 343.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 75.16 kB / 417.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09945, allocations: 62.44 MB / 479.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001983/0.1015, allocations: 0.5631 MB / 480.1 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002949/0.1018, allocations: 95.66 kB / 480.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.293e-05/0.1018, allocations: 0 / 480.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.1019, allocations: 7.938 kB / 480.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002064/0.1021, allocations: 15.97 kB / 480.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.925e-05/0.1021, allocations: 4 kB / 480.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.869e-05/0.1022, allocations: 4 kB / 480.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.066e-05/0.1022, allocations: 3.984 kB / 480.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.704e-05/0.1022, allocations: 4 kB / 480.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.443e-05/0.1023, allocations: 7.938 kB / 480.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.1023, allocations: 3.938 kB / 480.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.451e-05/0.1024, allocations: 15.98 kB / 480.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.051e-05/0.1024, allocations: 4 kB / 480.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.1024, allocations: 7.984 kB / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.79e-05/0.1025, allocations: 19.91 kB / 480.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1025, allocations: 4 kB / 480.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1025, allocations: 0 / 480.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1025, allocations: 0 / 480.3 MB, free: 4.73 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002924/0.1028, allocations: 315.6 kB / 480.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1029, allocations: 8.031 kB / 480.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.32e-05/0.1029, allocations: 38.75 kB / 480.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.103, allocations: 0.9375 kB / 480.7 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.1031, allocations: 164.4 kB / 480.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-06/0.1031, allocations: 384 / 480.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.1031, allocations: 4.375 kB / 480.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.754e-05/0.1032, allocations: 42.19 kB / 480.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1033, allocations: 7.875 kB / 480.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1033, allocations: 0 / 480.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1033, allocations: 0 / 480.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.779e-05/0.1033, allocations: 4 kB / 480.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001676/0.1035, allocations: 157.9 kB / 481.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.1037, allocations: 38.61 kB / 481.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.8e-05/0.1037, allocations: 8.859 kB / 481.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003591/0.1041, allocations: 117.1 kB / 481.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1041, allocations: 34.5 kB / 481.3 MB, free: 3.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1041, allocations: 4 kB / 481.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.001342/0.1055, allocations: 181.4 kB / 481.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1055, allocations: 59.34 kB / 481.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.816e-05/0.1056, allocations: 93.86 kB / 481.6 MB, free: 3.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.1056, allocations: 29.7 kB / 481.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.1057, allocations: 84.14 kB / 481.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.1057, allocations: 11.8 kB / 481.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.1058, allocations: 17.72 kB / 481.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1059, allocations: 314.8 kB / 482 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.151e-05/0.1059, allocations: 23.97 kB / 482.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.941e-05/0.106, allocations: 24.11 kB / 482.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.1062, allocations: 49.02 kB / 482.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.1062, allocations: 0 / 482.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001988/0.1064, allocations: 85.44 kB / 482.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1064, allocations: 6.812 kB / 482.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1064, allocations: 4 kB / 482.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1064, allocations: 0 / 482.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1066, allocations: 15.98 kB / 482.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1066, allocations: 0 / 482.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.336e-05/0.1067, allocations: 4 kB / 482.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1067, allocations: 11.98 kB / 482.3 MB, free: 2.559 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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 7.378e-05/0.1068, allocations: 105.8 kB / 482.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.1068, allocations: 8.219 kB / 482.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/0.1071, allocations: 93.14 kB / 482.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1071, allocations: 3.984 kB / 482.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1071, allocations: 0 / 482.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1071, allocations: 0 / 482.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.1078, allocations: 363.3 kB / 482.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1078, allocations: 0 / 482.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.782e-05/0.1079, allocations: 15.98 kB / 482.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.108, allocations: 0 / 482.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.108, allocations: 0 / 482.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.108, allocations: 3.938 kB / 482.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.108, allocations: 7.984 kB / 482.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.1082, allocations: 180.5 kB / 483 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.1083, allocations: 85 kB / 483.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.1083, allocations: 4 kB / 483.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.1084, allocations: 4 kB / 483.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.73e-05/0.1084, allocations: 7.922 kB / 483.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.1085, allocations: 4 kB / 483.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.957e-05/0.1085, allocations: 75.28 kB / 483.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1085, allocations: 96 / 483.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1087, allocations: 20 kB / 483.2 MB, free: 1.488 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.0005951/0.1093, allocations: 0.7092 MB / 483.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.1096, allocations: 55.89 kB / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1096, allocations: 0 / 484 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.417e-05/0.1097, allocations: 23.97 kB / 484 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.1099, allocations: 11.94 kB / 484 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006646/0.1106, allocations: 167.5 kB / 484.2 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.111, allocations: 0.6807 MB / 484.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.169e-05/0.1111, allocations: 0 / 484.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.608e-05/0.1111, allocations: 15.44 kB / 484.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1111, allocations: 0 / 484.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.1228, allocations: 1.38 MB / 486.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.123, allocations: 193 kB / 486.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/1.808, allocations: 0 / 486.4 MB, free: 14.21 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegStep_fmu --startTime=0 --stopTime=1.3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches