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: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 197.2 kB / 18.73 MB, free: 4.34 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 / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2177/0.2177, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 67.89 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3492, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001549/0.3507, allocations: 0.4891 MB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.3526, allocations: 1.409 MB / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.3526, allocations: 2.812 kB / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.3527, allocations: 3.938 kB / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.304e-05/0.3527, allocations: 0 / 0.5328 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006574/0.3534, allocations: 219.5 kB / 0.533 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.257e-05/0.3534, allocations: 20.05 kB / 0.5331 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.3535, allocations: 5.359 kB / 0.5331 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.719e-05/0.3535, allocations: 2.75 kB / 0.5331 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.61e-05/0.3536, allocations: 1.375 kB / 0.5331 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.3536, allocations: 1.375 kB / 0.5331 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004304/0.354, allocations: 279.2 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.354, allocations: 5.359 kB / 0.5333 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.809e-05/0.3541, allocations: 5.312 kB / 0.5333 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.3543, allocations: 142.2 kB / 0.5335 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3543, allocations: 0 / 0.5335 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3543, allocations: 4 kB / 0.5335 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3543, allocations: 0 / 0.5335 GB, free: 11.7 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004319/0.3547, allocations: 335.9 kB / 0.5338 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3548, allocations: 12.19 kB / 0.5338 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.3548, allocations: 2.312 kB / 0.5338 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.355, allocations: 169.7 kB / 0.534 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.355, allocations: 384 / 0.534 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-06/0.355, allocations: 1.75 kB / 0.534 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.913e-05/0.3551, allocations: 40.77 kB / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3551, allocations: 0 / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3551, allocations: 1.375 kB / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3551, allocations: 0 / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.212e-05/0.3552, allocations: 1.375 kB / 0.534 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.3553, allocations: 152.4 kB / 0.5342 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.3554, allocations: 25.27 kB / 0.5342 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.125e-05/0.3554, allocations: 6.234 kB / 0.5342 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-06/0.3554, allocations: 4 kB / 0.5342 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.3554, allocations: 35.88 kB / 0.5342 GB, free: 10.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3555, allocations: 0 / 0.5342 GB, free: 10.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001343/0.3556, allocations: 36.56 kB / 0.5343 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.3556, allocations: 55.34 kB / 0.5343 GB, free: 10.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.3557, allocations: 100.5 kB / 0.5344 GB, free: 10.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.3557, allocations: 27.08 kB / 0.5344 GB, free: 10.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.649e-05/0.3558, allocations: 84.39 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.3558, allocations: 1.375 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-05/0.3558, allocations: 11.09 kB / 0.5345 GB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.356, allocations: 316.2 kB / 0.5348 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.356, allocations: 1.375 kB / 0.5348 GB, free: 10.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.313e-06/0.356, allocations: 1.375 kB / 0.5348 GB, free: 10.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.692e-05/0.3561, allocations: 11.61 kB / 0.5349 GB, free: 10.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3561, allocations: 5.438 kB / 0.5349 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.492e-05/0.3561, allocations: 31.2 kB / 0.5349 GB, free: 10.1 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3561, allocations: 13.38 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.3562, allocations: 0 / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3562, allocations: 1.375 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.963e-05/0.3562, allocations: 5.359 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3562, allocations: 0 / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.284e-05/0.3563, allocations: 1.375 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.3563, allocations: 0 / 0.5349 GB, free: 10.09 MB / 398.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 7.306e-05/0.3563, allocations: 111.2 kB / 0.535 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-06/0.3564, allocations: 5.312 kB / 0.535 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.3565, allocations: 48.86 kB / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3565, allocations: 1.375 kB / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.3565, allocations: 0 / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3565, allocations: 0 / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.288e-05/0.3566, allocations: 156.4 kB / 0.5352 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3566, allocations: 5.406 kB / 0.5352 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3566, allocations: 0 / 0.5352 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.3566, allocations: 7.922 kB / 0.5352 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.3566, allocations: 9.25 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3566, allocations: 0 / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3566, allocations: 1.375 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.45e-05/0.3567, allocations: 57.05 kB / 0.5353 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.3568, allocations: 85.03 kB / 0.5354 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.3568, allocations: 5.344 kB / 0.5354 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.092e-05/0.3568, allocations: 1.375 kB / 0.5354 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.3569, allocations: 5.312 kB / 0.5354 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3569, allocations: 1.781 kB / 0.5354 GB, free: 9.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.046e-05/0.3569, allocations: 77.41 kB / 0.5355 GB, free: 9.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3569, allocations: 0 / 0.5355 GB, free: 9.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.3572, allocations: 42.42 kB / 0.5355 GB, free: 9.453 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.0002892/0.3574, allocations: 140.7 kB / 0.5356 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.235e-05/0.3575, allocations: 9.75 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3576, allocations: 3.938 kB / 0.5356 GB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.3576, allocations: 32.44 kB / 0.5357 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.3577, allocations: 5.281 kB / 0.5357 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001951/0.3579, allocations: 84.48 kB / 0.5358 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3582, allocations: 0.6744 MB / 0.5364 GB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.648e-05/0.3582, allocations: 5.562 kB / 0.5364 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.3583, allocations: 8.719 kB / 0.5364 GB, free: 8.488 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3583, allocations: 0 / 0.5364 GB, free: 8.488 MB / 398.1 MB Notification: Performance of Templates: time 0.003226/0.3615, allocations: 1.085 MB / 0.5375 GB, free: 7.918 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches