Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009017/0.000902, allocations: 89.38 kB / 17.34 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 202.7 kB / 18.28 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 246.8 MB, free: 11.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1868/0.1868, allocations: 46.19 MB / 345.2 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 8.375 kB / 419.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 63.58 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005981/0.104, allocations: 218.9 kB / 483.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.1058, allocations: 1.45 MB / 484.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.166e-05/0.1059, allocations: 0 / 484.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.1059, allocations: 0 / 484.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.284e-05/0.1059, allocations: 3.938 kB / 484.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.1065, allocations: 155.2 kB / 485 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.577e-05/0.1065, allocations: 8 kB / 485 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.454e-05/0.1065, allocations: 0 / 485 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.881e-05/0.1066, allocations: 7.984 kB / 485 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.841e-05/0.1066, allocations: 0 / 485 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.1066, allocations: 4 kB / 485 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004256/0.1071, allocations: 275.6 kB / 485.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.1071, allocations: 3.984 kB / 485.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.365e-05/0.1071, allocations: 33.7 kB / 485.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1073, allocations: 139.7 kB / 485.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1074, allocations: 0 / 485.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1074, allocations: 7.938 kB / 485.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1074, allocations: 0 / 485.5 MB, free: 1.773 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003254/0.1077, allocations: 333.8 kB / 485.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1077, allocations: 12.88 kB / 485.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.1078, allocations: 30.75 kB / 485.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.132e-05/0.1078, allocations: 8.875 kB / 485.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.1079, allocations: 164.4 kB / 486 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-06/0.1079, allocations: 384 / 486 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.162e-06/0.1079, allocations: 384 / 486 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.088e-05/0.108, allocations: 33.83 kB / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.15e-06/0.108, allocations: 0 / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.1081, allocations: 0 / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1081, allocations: 4 kB / 486 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.025e-05/0.1081, allocations: 11.88 kB / 486.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.1082, allocations: 149.7 kB / 486.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.446e-05/0.1083, allocations: 18.61 kB / 486.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.509e-05/0.1083, allocations: 4.859 kB / 486.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-06/0.1083, allocations: 0 / 486.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.1083, allocations: 38.56 kB / 486.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1083, allocations: 4 kB / 486.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.1085, allocations: 45.53 kB / 486.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.1085, allocations: 55.41 kB / 486.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.754e-05/0.1086, allocations: 89.86 kB / 486.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.1086, allocations: 25.7 kB / 486.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.389e-05/0.1086, allocations: 80.14 kB / 486.6 MB, free: 492 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.1087, allocations: 8.281 kB / 486.6 MB, free: 484 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.027e-05/0.1087, allocations: 9.969 kB / 486.6 MB, free: 468 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.1088, allocations: 318.8 kB / 486.9 MB, free: 140 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-06/0.1088, allocations: 0 / 486.9 MB, free: 140 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.005e-06/0.1088, allocations: 4 kB / 486.9 MB, free: 136 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.428e-05/0.1088, allocations: 8.859 kB / 486.9 MB, free: 124 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1088, allocations: 0 / 486.9 MB, free: 124 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.743e-05/0.1089, allocations: 41.58 kB / 486.9 MB, free: 76 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.1089, allocations: 4 kB / 486.9 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.1089, allocations: 4.094 kB / 486.9 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.586e-06/0.1089, allocations: 4 kB / 487 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.364e-05/0.109, allocations: 3.984 kB / 487 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.109, allocations: 0 / 487 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.22e-05/0.109, allocations: 0 / 487 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.109, allocations: 4 kB / 487 MB, free: 56 kB / 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 (1): * Single equations (assignments): 1 * 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 8.05e-05/0.1091, allocations: 109.8 kB / 487.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-06/0.1091, allocations: 7.875 kB / 487.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.1093, allocations: 52.81 kB / 487.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1093, allocations: 7.938 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1093, allocations: 3.984 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.1093, allocations: 0 / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.117e-05/0.1094, allocations: 145.7 kB / 487.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.1094, allocations: 4 kB / 487.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.823e-06/0.1094, allocations: 3.938 kB / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1094, allocations: 0 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.1094, allocations: 32 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1094, allocations: 4 kB / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1094, allocations: 0 / 487.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.924e-05/0.1095, allocations: 65.05 kB / 487.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.1096, allocations: 85.03 kB / 487.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.1096, allocations: 7.938 kB / 487.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.982e-05/0.1096, allocations: 0 / 487.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.1097, allocations: 4.031 kB / 487.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.1097, allocations: 4 kB / 487.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.001e-05/0.1097, allocations: 75.28 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1097, allocations: 0 / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.11, allocations: 43.98 kB / 487.6 MB, free: 15.34 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.0004765/0.1104, allocations: 0.6437 MB / 488.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.525e-05/0.1105, allocations: 4 kB / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1105, allocations: 0 / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.067e-05/0.1106, allocations: 29.7 kB / 488.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1107, allocations: 3.938 kB / 488.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003233/0.111, allocations: 128.3 kB / 488.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1113, allocations: 0.677 MB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.565e-05/0.1113, allocations: 4.125 kB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.1113, allocations: 7.438 kB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1113, allocations: 0 / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.1217, allocations: 1.681 MB / 490.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/0.1219, allocations: 202.7 kB / 490.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.834, allocations: 4 kB / 490.9 MB, free: 11.92 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches