Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007312/0.0007312, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009232/0.0009232, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2023/0.2023, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002501, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1129, allocations: 63.55 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006576/0.1136, allocations: 218.9 kB / 483.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1156, allocations: 1.458 MB / 484.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.1156, allocations: 4 kB / 484.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.408e-05/0.1157, allocations: 0 / 484.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.882e-05/0.1157, allocations: 0 / 484.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006093/0.1163, allocations: 151.1 kB / 485 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.1164, allocations: 11.92 kB / 485 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.264e-05/0.1164, allocations: 0 / 485 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.124e-05/0.1164, allocations: 4 kB / 485 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.743e-05/0.1165, allocations: 4 kB / 485 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.1165, allocations: 0 / 485 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004664/0.117, allocations: 279.6 kB / 485.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.117, allocations: 11.98 kB / 485.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.948e-05/0.117, allocations: 29.64 kB / 485.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002186/0.1173, allocations: 139.7 kB / 485.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1173, allocations: 8 kB / 485.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1173, allocations: 3.938 kB / 485.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1173, allocations: 0 / 485.5 MB, free: 1.742 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.0003279/0.1176, allocations: 327.6 kB / 485.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.1177, allocations: 8.875 kB / 485.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.1177, allocations: 34.75 kB / 485.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.1178, allocations: 4.938 kB / 485.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.142e-05/0.1179, allocations: 160.4 kB / 486 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1179, allocations: 4.375 kB / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-06/0.1179, allocations: 384 / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.118, allocations: 45.75 kB / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.118, allocations: 0 / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.118, allocations: 0 / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1181, allocations: 0 / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.724e-05/0.1181, allocations: 11.98 kB / 486.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003588/0.1185, allocations: 244.9 kB / 486.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.62e-05/0.1185, allocations: 18.58 kB / 486.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.843e-05/0.1185, allocations: 12.84 kB / 486.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/0.1186, allocations: 0 / 486.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.1186, allocations: 38.48 kB / 486.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1186, allocations: 3.938 kB / 486.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001443/0.1187, allocations: 41.67 kB / 486.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.1188, allocations: 51.41 kB / 486.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.121e-05/0.1189, allocations: 97.86 kB / 486.6 MB, free: 472 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.1189, allocations: 25.7 kB / 486.6 MB, free: 440 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.1189, allocations: 88.34 kB / 486.7 MB, free: 348 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-06/0.1189, allocations: 3.906 kB / 486.7 MB, free: 344 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.119, allocations: 13.72 kB / 486.7 MB, free: 324 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1191, allocations: 319 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.034e-05/0.1191, allocations: 4.25 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.1191, allocations: 30.5 kB / 487 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.468e-05/0.1192, allocations: 26.58 kB / 487.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1192, allocations: 0 / 487.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.231e-05/0.1193, allocations: 45.64 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1193, allocations: 4 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1193, allocations: 7.984 kB / 487.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1193, allocations: 0 / 487.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.558e-05/0.1194, allocations: 15.94 kB / 487.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.1194, allocations: 0 / 487.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.734e-05/0.1194, allocations: 4 kB / 487.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1194, allocations: 0 / 487.1 MB, free: 15.83 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.474e-05/0.1195, allocations: 113.8 kB / 487.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.1195, allocations: 4.094 kB / 487.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1196, allocations: 48.75 kB / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1196, allocations: 0 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1197, allocations: 0 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1197, allocations: 0 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.1198, allocations: 153.6 kB / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1198, allocations: 0 / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.164e-06/0.1198, allocations: 0 / 487.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1198, allocations: 7.969 kB / 487.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.1198, allocations: 0 / 487.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.1199, allocations: 0 / 487.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1199, allocations: 4 kB / 487.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.12, allocations: 139.4 kB / 487.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.753e-05/0.12, allocations: 77.11 kB / 487.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.12, allocations: 3.938 kB / 487.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.66e-05/0.1201, allocations: 4.031 kB / 487.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.036e-05/0.1201, allocations: 0 / 487.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.1201, allocations: 4 kB / 487.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.179e-05/0.1202, allocations: 75.28 kB / 487.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1202, allocations: 0 / 487.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.1205, allocations: 47.98 kB / 487.8 MB, free: 15.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005204/0.121, allocations: 0.7047 MB / 488.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.26e-05/0.1211, allocations: 4 kB / 488.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1211, allocations: 0 / 488.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.007e-05/0.1211, allocations: 37.64 kB / 488.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.1213, allocations: 4 kB / 488.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003793/0.1217, allocations: 124.7 kB / 488.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.122, allocations: 0.677 MB / 489.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.542e-05/0.122, allocations: 4 kB / 489.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.14e-05/0.122, allocations: 7.438 kB / 489.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.122, allocations: 0 / 489.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01113/0.1332, allocations: 1.681 MB / 491 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.1334, allocations: 198.7 kB / 491.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.837, allocations: 0 / 491.2 MB, free: 11.59 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches