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.001241/0.001241, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1996/0.1996, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 72.86 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.1005, allocations: 62.45 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001755/0.1023, allocations: 486.3 kB / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1041, allocations: 1.403 MB / 482 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.003e-05/0.1042, allocations: 4 kB / 482 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.1042, allocations: 0 / 482 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.323e-05/0.1043, allocations: 0 / 482 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007072/0.105, allocations: 239.6 kB / 482.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.355e-05/0.105, allocations: 4 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.1051, allocations: 4 kB / 482.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1051, allocations: 3.984 kB / 482.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.214e-05/0.1051, allocations: 4 kB / 482.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.1051, allocations: 0 / 482.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004333/0.1056, allocations: 287.6 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.163e-05/0.1056, allocations: 0 / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.113e-05/0.1056, allocations: 11.92 kB / 482.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.1058, allocations: 139.7 kB / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1058, allocations: 0 / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1059, allocations: 0 / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1059, allocations: 0 / 482.7 MB, free: 2.641 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.0003142/0.1062, allocations: 331.6 kB / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.1062, allocations: 12.02 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.947e-05/0.1063, allocations: 38.69 kB / 483.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.1063, allocations: 4.938 kB / 483.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.054e-05/0.1064, allocations: 164.4 kB / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.1064, allocations: 384 / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-06/0.1064, allocations: 384 / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.371e-05/0.1065, allocations: 45.75 kB / 483.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-06/0.1065, allocations: 0 / 483.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.1065, allocations: 4 kB / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1065, allocations: 0 / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.795e-05/0.1066, allocations: 4 kB / 483.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003004/0.1069, allocations: 244.9 kB / 483.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.421e-05/0.1069, allocations: 22.58 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.558e-05/0.1069, allocations: 4.859 kB / 483.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.996e-06/0.107, allocations: 3.938 kB / 483.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.107, allocations: 34.5 kB / 483.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.107, allocations: 4 kB / 483.6 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000121/0.1071, allocations: 41.66 kB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.1071, allocations: 51.41 kB / 483.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.478e-05/0.1072, allocations: 98.14 kB / 483.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.1072, allocations: 25.7 kB / 483.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.1073, allocations: 88.06 kB / 483.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.523e-06/0.1073, allocations: 3.906 kB / 483.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.823e-05/0.1073, allocations: 21.95 kB / 483.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.1074, allocations: 318.8 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.1074, allocations: 4 kB / 484.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.238e-05/0.1075, allocations: 22.52 kB / 484.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.497e-05/0.1075, allocations: 26.56 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1075, allocations: 4 kB / 484.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.095e-05/0.1076, allocations: 49.64 kB / 484.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1076, allocations: 4 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.1076, allocations: 3.984 kB / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.1076, allocations: 0 / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.847e-05/0.1077, allocations: 15.92 kB / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1077, allocations: 0 / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.591e-05/0.1077, allocations: 0 / 484.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.1077, allocations: 8 kB / 484.4 MB, free: 0.7227 MB / 350.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 5.599e-05/0.1078, allocations: 113.9 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.1078, allocations: 0 / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.672e-05/0.1079, allocations: 48.89 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1079, allocations: 4 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.108, allocations: 0 / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.108, allocations: 0 / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.1081, allocations: 153.5 kB / 484.7 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.1081, allocations: 12.02 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.853e-06/0.1081, allocations: 0 / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1081, allocations: 3.938 kB / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-06/0.1081, allocations: 0 / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1081, allocations: 0 / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1081, allocations: 0 / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.468e-05/0.1082, allocations: 135.4 kB / 484.8 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.968e-05/0.1083, allocations: 81.12 kB / 484.9 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.608e-06/0.1083, allocations: 4 kB / 484.9 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.514e-05/0.1083, allocations: 4 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.002e-05/0.1084, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.1084, allocations: 0 / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.91e-05/0.1084, allocations: 83.28 kB / 485 MB, free: 16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1084, allocations: 0 / 485 MB, free: 16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002833/0.1087, allocations: 43.98 kB / 485 MB, free: 15.95 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.0004674/0.1092, allocations: 0.7008 MB / 485.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.427e-05/0.1093, allocations: 12 kB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1093, allocations: 0 / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.162e-05/0.1093, allocations: 33.64 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.1095, allocations: 4.75 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.1099, allocations: 134.9 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.1101, allocations: 0.6729 MB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.059e-05/0.1101, allocations: 4 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.025e-05/0.1102, allocations: 7.438 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1102, allocations: 0 / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.1275, allocations: 1.851 MB / 488.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.319/7.447, allocations: 5.016 kB / 488.4 MB, free: 12.5 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