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.000967/0.0009669, allocations: 95.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 200.3 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.7 MB / 247.5 MB, free: 9.449 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1952/0.1952, allocations: 46.18 MB / 345.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002695, allocations: 11.94 kB / 420.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 63.57 MB / 483.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006215/0.116, allocations: 223 kB / 483.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.1181, allocations: 1.447 MB / 485.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.59e-05/0.1181, allocations: 0 / 485.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.1181, allocations: 3.938 kB / 485.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.537e-05/0.1182, allocations: 0 / 485.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006248/0.1188, allocations: 159.2 kB / 485.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.023e-05/0.1188, allocations: 7.938 kB / 485.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.356e-05/0.1189, allocations: 0 / 485.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.062e-05/0.1189, allocations: 4 kB / 485.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.244e-05/0.119, allocations: 7.969 kB / 485.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.119, allocations: 0 / 485.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004719/0.1195, allocations: 275.6 kB / 485.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.341e-05/0.1195, allocations: 0 / 485.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.1195, allocations: 41.56 kB / 485.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.1197, allocations: 83.81 kB / 486 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1197, allocations: 8 kB / 486 MB, free: 1.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1197, allocations: 0 / 486 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.1197, allocations: 0 / 486 MB, free: 1.871 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.0003296/0.1201, allocations: 323.6 kB / 486.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1201, allocations: 12.86 kB / 486.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.1202, allocations: 4.938 kB / 486.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.904e-05/0.1202, allocations: 160.4 kB / 486.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.1203, allocations: 4.375 kB / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.1203, allocations: 384 / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.1204, allocations: 49.98 kB / 486.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1204, allocations: 0 / 486.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1204, allocations: 0 / 486.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1204, allocations: 0 / 486.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.94e-05/0.1205, allocations: 11.94 kB / 486.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003539/0.1208, allocations: 240.9 kB / 486.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.729e-05/0.1209, allocations: 14.58 kB / 486.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.079e-05/0.1209, allocations: 16.92 kB / 486.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.1209, allocations: 0 / 486.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.121, allocations: 34.56 kB / 486.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.121, allocations: 0 / 486.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001423/0.1211, allocations: 41.62 kB / 486.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.1212, allocations: 51.41 kB / 486.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.083e-05/0.1212, allocations: 101.8 kB / 487 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1213, allocations: 29.95 kB / 487 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.607e-05/0.1213, allocations: 84.36 kB / 487.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-06/0.1213, allocations: 3.906 kB / 487.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.1214, allocations: 9.719 kB / 487.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1215, allocations: 330.7 kB / 487.5 MB, free: 168 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/0.1215, allocations: 0 / 487.5 MB, free: 168 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.229e-05/0.1215, allocations: 22.52 kB / 487.5 MB, free: 136 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.903e-05/0.1216, allocations: 34.52 kB / 487.5 MB, free: 92 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1216, allocations: 4 kB / 487.5 MB, free: 88 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.538e-05/0.1216, allocations: 45.62 kB / 487.6 MB, free: 36 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1217, allocations: 4 kB / 487.6 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1217, allocations: 0 / 487.6 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1217, allocations: 4 kB / 487.6 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.268e-05/0.1218, allocations: 8.094 kB / 487.6 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1218, allocations: 0 / 487.6 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2e-05/0.1218, allocations: 7.984 kB / 487.6 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.1218, allocations: 4 kB / 487.6 MB, free: 8 kB / 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 8.686e-05/0.1219, allocations: 113.7 kB / 487.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/0.1219, allocations: 4 kB / 487.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.122, allocations: 44.83 kB / 487.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1221, allocations: 3.984 kB / 487.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1221, allocations: 0 / 487.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1221, allocations: 0 / 487.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1222, allocations: 145.6 kB / 487.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1222, allocations: 4 kB / 487.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1222, allocations: 0 / 487.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1222, allocations: 0 / 487.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.1223, allocations: 3.984 kB / 487.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1223, allocations: 0 / 487.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1223, allocations: 0 / 487.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.976e-05/0.1224, allocations: 139.5 kB / 488 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.1224, allocations: 81.02 kB / 488.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.1224, allocations: 4 kB / 488.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.871e-05/0.1225, allocations: 4.078 kB / 488.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.519e-05/0.1225, allocations: 3.984 kB / 488.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.1225, allocations: 0 / 488.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.1226, allocations: 83.31 kB / 488.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1226, allocations: 0 / 488.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000298/0.1229, allocations: 44 kB / 488.3 MB, free: 15.25 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.0002789/0.1232, allocations: 135.2 kB / 488.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.156e-05/0.1232, allocations: 11.94 kB / 488.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1233, allocations: 3.938 kB / 488.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.541e-05/0.1233, allocations: 33.7 kB / 488.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.1235, allocations: 4.281 kB / 488.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002268/0.1237, allocations: 116.5 kB / 488.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.124, allocations: 0.6731 MB / 489.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.667e-05/0.124, allocations: 11.44 kB / 489.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.124, allocations: 0 / 489.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Templates: time 0.002544/0.1266, allocations: 0.9247 MB / 490.2 MB, free: 13.26 MB / 366.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