Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 200.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.5 MB / 243.4 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007483/0.0007484, allocations: 92.44 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2852/0.2852, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.0002499, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2616, allocations: 62.97 MB / 0.516 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0004687/0.2621, allocations: 227.8 kB / 0.5162 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002136/0.2624, allocations: 88.72 kB / 0.5163 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.2624, allocations: 2.5 kB / 0.5163 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.576e-06/0.2624, allocations: 3.938 kB / 0.5163 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.2626, allocations: 13.75 kB / 0.5163 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.325e-05/0.2626, allocations: 2.625 kB / 0.5163 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.866e-05/0.2626, allocations: 11.92 kB / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.2627, allocations: 3.844 kB / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.2627, allocations: 0 / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.611e-05/0.2627, allocations: 7.234 kB / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.2628, allocations: 0 / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.012e-05/0.2628, allocations: 15.73 kB / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.2628, allocations: 3.375 kB / 0.5163 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.966e-05/0.2629, allocations: 32.7 kB / 0.5164 GB, free: 37 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.057e-05/0.2629, allocations: 14.33 kB / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2629, allocations: 7 kB / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2629, allocations: 0 / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.725e-06/0.2629, allocations: 0 / 0.5164 GB, free: 36.99 MB / 378.7 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.0001775/0.2631, allocations: 317.8 kB / 0.5167 GB, free: 36.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2632, allocations: 8.781 kB / 0.5167 GB, free: 36.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.929e-05/0.2632, allocations: 30.75 kB / 0.5167 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.753e-05/0.2632, allocations: 3.969 kB / 0.5167 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.784e-05/0.2633, allocations: 160.4 kB / 0.5169 GB, free: 36.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.2633, allocations: 4.375 kB / 0.5169 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.2633, allocations: 7.406 kB / 0.5169 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.869e-05/0.2634, allocations: 36.45 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2634, allocations: 7.938 kB / 0.5169 GB, free: 36.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-06/0.2634, allocations: 0 / 0.5169 GB, free: 36.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.2634, allocations: 0 / 0.5169 GB, free: 36.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.685e-05/0.2635, allocations: 17.08 kB / 0.5169 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.412e-05/0.2636, allocations: 147.8 kB / 0.5171 GB, free: 36.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.2637, allocations: 40.12 kB / 0.5171 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.211e-05/0.2637, allocations: 15.3 kB / 0.5171 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003087/0.264, allocations: 128.7 kB / 0.5173 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.2641, allocations: 34.56 kB / 0.5173 GB, free: 35.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2641, allocations: 3.938 kB / 0.5173 GB, free: 35.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.001102/0.2652, allocations: 220 kB / 0.5175 GB, free: 35.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.337e-05/0.2652, allocations: 58.28 kB / 0.5176 GB, free: 35.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.067e-05/0.2653, allocations: 89.86 kB / 0.5176 GB, free: 35.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-06/0.2653, allocations: 28.94 kB / 0.5177 GB, free: 35.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-06/0.2653, allocations: 80.14 kB / 0.5177 GB, free: 35.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.2653, allocations: 18.59 kB / 0.5178 GB, free: 35.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.2653, allocations: 0 / 0.5178 GB, free: 35.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.644e-05/0.2654, allocations: 313.7 kB / 0.5181 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.462e-05/0.2654, allocations: 30.61 kB / 0.5181 GB, free: 35.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.295e-05/0.2655, allocations: 19.5 kB / 0.5181 GB, free: 35.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.2656, allocations: 53.42 kB / 0.5182 GB, free: 35.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.2657, allocations: 0 / 0.5182 GB, free: 35.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001703/0.2658, allocations: 92.8 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.278e-06/0.2658, allocations: 5.906 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.2659, allocations: 0 / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.2659, allocations: 0 / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.266, allocations: 14.89 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.266, allocations: 4 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.215e-05/0.2661, allocations: 13.33 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.2661, allocations: 2.844 kB / 0.5183 GB, free: 35.21 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/0.2662, allocations: 105.8 kB / 0.5184 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.988e-06/0.2662, allocations: 13.81 kB / 0.5184 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002215/0.2664, allocations: 97.67 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2664, allocations: 2.938 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2664, allocations: 320 / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2664, allocations: 0 / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.267, allocations: 377 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.267, allocations: 3 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.551e-05/0.2671, allocations: 19.42 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2671, allocations: 3.375 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2671, allocations: 0 / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2671, allocations: 3.469 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2671, allocations: 3.938 kB / 0.5189 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.2673, allocations: 191 kB / 0.5191 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.418e-05/0.2673, allocations: 80.39 kB / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.2673, allocations: 2.781 kB / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.2674, allocations: 9.203 kB / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.429e-05/0.2675, allocations: 0 / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.2675, allocations: 3.031 kB / 0.5192 GB, free: 34.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.353e-05/0.2675, allocations: 79.28 kB / 0.5192 GB, free: 34.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2675, allocations: 0 / 0.5192 GB, free: 34.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.2677, allocations: 18.16 kB / 0.5193 GB, free: 34.36 MB / 378.7 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 (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.0003288/0.268, allocations: 0.7215 MB / 0.52 GB, free: 33.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.2682, allocations: 55.72 kB / 0.52 GB, free: 33.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2682, allocations: 0 / 0.52 GB, free: 33.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.251e-05/0.2683, allocations: 31.84 kB / 0.52 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.2685, allocations: 4.422 kB / 0.5201 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.269, allocations: 198.8 kB / 0.5202 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.976e-05/0.2691, allocations: 0.6781 MB / 0.5209 GB, free: 32.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.621e-05/0.2691, allocations: 13.67 kB / 0.5209 GB, free: 32.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2691, allocations: 0 / 0.5209 GB, free: 32.75 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.259/2.528, allocations: 0.7451 MB / 0.5216 GB, free: 32.72 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep_fmu --startTime=0 --stopTime=1.3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches