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: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001677/0.001677, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001959/0.00196, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2118/0.2118, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 79.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3676/0.3691, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001553/0.3707, allocations: 0.491 MB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.3724, allocations: 1.409 MB / 0.5328 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.304e-05/0.3724, allocations: 0 / 0.5328 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.334e-05/0.3724, allocations: 0 / 0.5328 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.018e-05/0.3725, allocations: 0 / 0.5328 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006528/0.3731, allocations: 232.6 kB / 0.533 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.574e-05/0.3732, allocations: 8.109 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.512e-05/0.3732, allocations: 2.75 kB / 0.5331 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.171e-05/0.3732, allocations: 9.359 kB / 0.5331 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.3733, allocations: 6.75 kB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.3733, allocations: 0 / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004284/0.3737, allocations: 280.6 kB / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.3738, allocations: 0 / 0.5333 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.568e-05/0.3738, allocations: 13.3 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.374, allocations: 142.2 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.374, allocations: 0 / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.374, allocations: 0 / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.374, allocations: 1.375 kB / 0.5335 GB, free: 11.66 MB / 398.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.0003313/0.3744, allocations: 338.5 kB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3744, allocations: 9.625 kB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/0.3744, allocations: 2.312 kB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.643e-05/0.3745, allocations: 160.4 kB / 0.534 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.3746, allocations: 1.75 kB / 0.534 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.3746, allocations: 5.734 kB / 0.534 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.3747, allocations: 39.52 kB / 0.534 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3747, allocations: 3.984 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3747, allocations: 3.938 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3747, allocations: 1.375 kB / 0.534 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.73e-05/0.3748, allocations: 16.05 kB / 0.534 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003332/0.3751, allocations: 239.8 kB / 0.5343 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.994e-05/0.3752, allocations: 17.33 kB / 0.5343 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.997e-05/0.3752, allocations: 10.27 kB / 0.5343 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.225e-06/0.3752, allocations: 0 / 0.5343 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.3752, allocations: 35.88 kB / 0.5343 GB, free: 10.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3753, allocations: 4 kB / 0.5343 GB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.3754, allocations: 40.48 kB / 0.5344 GB, free: 10.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.3755, allocations: 51.41 kB / 0.5344 GB, free: 10.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.426e-05/0.3755, allocations: 96.59 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.3756, allocations: 27.08 kB / 0.5345 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.3756, allocations: 83.94 kB / 0.5346 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.3756, allocations: 9.281 kB / 0.5346 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.3756, allocations: 16.72 kB / 0.5346 GB, free: 10.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3758, allocations: 316.2 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.299e-05/0.3758, allocations: 1.375 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.497e-05/0.3758, allocations: 26.69 kB / 0.535 GB, free: 9.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.37e-05/0.3759, allocations: 28.02 kB / 0.535 GB, free: 9.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3759, allocations: 0 / 0.535 GB, free: 9.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.153e-05/0.3759, allocations: 59.31 kB / 0.5351 GB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.376, allocations: 5.5 kB / 0.5351 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.376, allocations: 0 / 0.5351 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.376, allocations: 1.375 kB / 0.5351 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.677e-05/0.376, allocations: 5.5 kB / 0.5351 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.3761, allocations: 3.938 kB / 0.5351 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.3761, allocations: 1.375 kB / 0.5351 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3761, allocations: 2.844 kB / 0.5351 GB, free: 9.902 MB / 398.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.905e-05/0.3762, allocations: 119.2 kB / 0.5352 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3762, allocations: 5.359 kB / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.753e-05/0.3763, allocations: 37.08 kB / 0.5352 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3763, allocations: 0 / 0.5352 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3763, allocations: 0 / 0.5352 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3763, allocations: 1.375 kB / 0.5352 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.3765, allocations: 162.9 kB / 0.5354 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.3765, allocations: 1.375 kB / 0.5354 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.264e-06/0.3765, allocations: 0 / 0.5354 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3765, allocations: 5.312 kB / 0.5354 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-06/0.3765, allocations: 0 / 0.5354 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.498e-06/0.3765, allocations: 5.312 kB / 0.5354 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3765, allocations: 0 / 0.5354 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.593e-05/0.3766, allocations: 139.7 kB / 0.5355 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.3766, allocations: 77.11 kB / 0.5356 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.3767, allocations: 1.375 kB / 0.5356 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.725e-05/0.3767, allocations: 0 / 0.5356 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.3767, allocations: 1.375 kB / 0.5356 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.3767, allocations: 1.469 kB / 0.5356 GB, free: 9.289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.181e-05/0.3768, allocations: 80.64 kB / 0.5357 GB, free: 9.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3768, allocations: 0 / 0.5357 GB, free: 9.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.3771, allocations: 39.75 kB / 0.5357 GB, free: 9.207 MB / 398.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.0002565/0.3773, allocations: 149.5 kB / 0.5359 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.462e-05/0.3774, allocations: 11.47 kB / 0.5359 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3774, allocations: 0 / 0.5359 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.79e-05/0.3774, allocations: 29.08 kB / 0.5359 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.3777, allocations: 9.25 kB / 0.5359 GB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001858/0.3779, allocations: 83.25 kB / 0.536 GB, free: 8.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.3781, allocations: 0.6712 MB / 0.5366 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.267e-05/0.3781, allocations: 5.875 kB / 0.5367 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.269e-05/0.3781, allocations: 8.281 kB / 0.5367 GB, free: 8.242 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3781, allocations: 0.875 kB / 0.5367 GB, free: 8.242 MB / 398.1 MB Notification: Performance of Templates: time 0.003649/0.3818, allocations: 1.093 MB / 0.5377 GB, free: 7.668 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches