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.001526/0.001526, allocations: 114 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 79.86 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3214, allocations: 62.44 MB / 0.5316 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001709/0.3232, allocations: 0.4897 MB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.3252, allocations: 1.401 MB / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.71e-05/0.3252, allocations: 0 / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.3253, allocations: 1.375 kB / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.217e-05/0.3253, allocations: 0 / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007292/0.3261, allocations: 228.2 kB / 0.5337 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.819e-05/0.3261, allocations: 8.125 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.829e-05/0.3262, allocations: 5.359 kB / 0.5337 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.856e-05/0.3262, allocations: 6.75 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.667e-05/0.3263, allocations: 5.359 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.3263, allocations: 1.375 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005028/0.3268, allocations: 283.9 kB / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.3268, allocations: 3.984 kB / 0.534 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.3269, allocations: 5.219 kB / 0.534 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.3271, allocations: 142.2 kB / 0.5341 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3271, allocations: 3.938 kB / 0.5341 GB, free: 11.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3271, allocations: 1.156 kB / 0.5341 GB, free: 11.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.3271, allocations: 0 / 0.5341 GB, free: 11.71 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.0005417/0.3277, allocations: 338.5 kB / 0.5345 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3277, allocations: 10.09 kB / 0.5345 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.3278, allocations: 2.156 kB / 0.5345 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.3279, allocations: 164.4 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3279, allocations: 1.594 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.328, allocations: 1.656 kB / 0.5346 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.3281, allocations: 47.5 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3281, allocations: 0 / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3281, allocations: 0 / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3281, allocations: 5.25 kB / 0.5347 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.962e-05/0.3282, allocations: 12.36 kB / 0.5347 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003995/0.3286, allocations: 240.5 kB / 0.5349 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.874e-05/0.3286, allocations: 21.02 kB / 0.535 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.3287, allocations: 9.828 kB / 0.535 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.3287, allocations: 0 / 0.535 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.3287, allocations: 39.88 kB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3287, allocations: 0 / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000169/0.3289, allocations: 35.48 kB / 0.535 GB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.3289, allocations: 52.66 kB / 0.5351 GB, free: 10.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.329, allocations: 96.41 kB / 0.5352 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3291, allocations: 31.02 kB / 0.5352 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.3291, allocations: 83.94 kB / 0.5353 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.3292, allocations: 5.438 kB / 0.5353 GB, free: 10.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.3292, allocations: 17.38 kB / 0.5353 GB, free: 10.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3293, allocations: 318.8 kB / 0.5356 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.604e-05/0.3294, allocations: 10.36 kB / 0.5356 GB, free: 10.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.359e-05/0.3294, allocations: 17.95 kB / 0.5356 GB, free: 10.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.642e-05/0.3294, allocations: 28.11 kB / 0.5357 GB, free: 9.996 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.3294, allocations: 1.031 kB / 0.5357 GB, free: 9.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000168/0.3296, allocations: 45.94 kB / 0.5357 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3296, allocations: 7.875 kB / 0.5357 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3296, allocations: 1.062 kB / 0.5357 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.3297, allocations: 5.156 kB / 0.5357 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.784e-05/0.3297, allocations: 8.562 kB / 0.5357 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3297, allocations: 1.219 kB / 0.5357 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.3298, allocations: 5.25 kB / 0.5357 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.3298, allocations: 2.375 kB / 0.5357 GB, free: 9.945 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 7.398e-05/0.3299, allocations: 114.9 kB / 0.5358 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3299, allocations: 1.094 kB / 0.5359 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.33, allocations: 45.27 kB / 0.5359 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.33, allocations: 7.938 kB / 0.5359 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.33, allocations: 5.438 kB / 0.5359 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.33, allocations: 0 / 0.5359 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.3302, allocations: 156.2 kB / 0.5361 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3302, allocations: 0 / 0.5361 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-06/0.3302, allocations: 1.438 kB / 0.5361 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3302, allocations: 0 / 0.5361 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.3302, allocations: 5.281 kB / 0.5361 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3302, allocations: 0 / 0.5361 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3303, allocations: 0 / 0.5361 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.3304, allocations: 139.2 kB / 0.5362 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.3304, allocations: 78.52 kB / 0.5363 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.071e-05/0.3304, allocations: 0 / 0.5363 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.083e-05/0.3305, allocations: 5.266 kB / 0.5363 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/0.3305, allocations: 1.312 kB / 0.5363 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.3306, allocations: 5.078 kB / 0.5363 GB, free: 9.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.3306, allocations: 76.31 kB / 0.5364 GB, free: 9.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3306, allocations: 1.125 kB / 0.5364 GB, free: 9.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003328/0.3309, allocations: 47.34 kB / 0.5364 GB, free: 9.238 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.0002935/0.3312, allocations: 140.9 kB / 0.5365 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.524e-05/0.3313, allocations: 11.88 kB / 0.5365 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3314, allocations: 0 / 0.5365 GB, free: 9.125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.3314, allocations: 29.36 kB / 0.5366 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3317, allocations: 7.328 kB / 0.5366 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002624/0.3319, allocations: 113.1 kB / 0.5367 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.3322, allocations: 0.6751 MB / 0.5373 GB, free: 8.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.733e-05/0.3322, allocations: 8.562 kB / 0.5374 GB, free: 8.25 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3322, allocations: 1.125 kB / 0.5374 GB, free: 8.25 MB / 398.1 MB Notification: Performance of Templates: time 0.002679/0.3349, allocations: 0.9336 MB / 0.5383 GB, free: 7.785 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/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