Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 107 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.237/0.237, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 73.47 kB / 441.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1422, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001716/0.144, allocations: 0.4984 MB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.146, allocations: 1.392 MB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.122e-05/0.1461, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.725e-05/0.1462, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.412e-05/0.1463, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.1473, allocations: 223.9 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.1474, allocations: 4 kB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.083e-05/0.1475, allocations: 11.98 kB / 0.4899 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.1475, allocations: 4 kB / 0.4899 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1477, allocations: 7.938 kB / 0.4899 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.1477, allocations: 0 / 0.4899 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005821/0.1483, allocations: 279.6 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.1483, allocations: 3.984 kB / 0.4902 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.1483, allocations: 4 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.1486, allocations: 135.7 kB / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1487, allocations: 0 / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.1487, allocations: 0 / 0.4904 GB, free: 9.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1487, allocations: 0 / 0.4904 GB, free: 9.242 MB / 382.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.0004948/0.1492, allocations: 346.9 kB / 0.4907 GB, free: 8.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1492, allocations: 11.89 kB / 0.4907 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.1493, allocations: 12.84 kB / 0.4907 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1494, allocations: 160.4 kB / 0.4909 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1494, allocations: 384 / 0.4909 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.1494, allocations: 4.375 kB / 0.4909 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.1496, allocations: 42 kB / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.1496, allocations: 0 / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1496, allocations: 0 / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1496, allocations: 0 / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.165e-05/0.1497, allocations: 11.94 kB / 0.4909 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004205/0.1501, allocations: 252.8 kB / 0.4912 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.265e-05/0.1502, allocations: 18.58 kB / 0.4912 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.1502, allocations: 4.859 kB / 0.4912 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.1502, allocations: 0 / 0.4912 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.1503, allocations: 34.56 kB / 0.4912 GB, free: 8.203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1503, allocations: 0 / 0.4912 GB, free: 8.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001619/0.1504, allocations: 45.78 kB / 0.4913 GB, free: 8.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.1505, allocations: 51.41 kB / 0.4913 GB, free: 8.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.1506, allocations: 97.86 kB / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.1506, allocations: 25.7 kB / 0.4914 GB, free: 7.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.1507, allocations: 84.05 kB / 0.4915 GB, free: 7.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.195e-06/0.1507, allocations: 3.984 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.1507, allocations: 13.72 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1509, allocations: 318.9 kB / 0.4918 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.1509, allocations: 8 kB / 0.4918 GB, free: 7.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.627e-05/0.1509, allocations: 18.58 kB / 0.4918 GB, free: 7.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.215e-05/0.151, allocations: 30.5 kB / 0.4919 GB, free: 7.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.151, allocations: 0 / 0.4919 GB, free: 7.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.535e-05/0.1511, allocations: 53.64 kB / 0.4919 GB, free: 7.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1511, allocations: 8 kB / 0.4919 GB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.1511, allocations: 3.984 kB / 0.4919 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1511, allocations: 3.984 kB / 0.4919 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.628e-05/0.1512, allocations: 8 kB / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1512, allocations: 0 / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.917e-05/0.1512, allocations: 0 / 0.492 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.1512, allocations: 7.938 kB / 0.492 GB, free: 7.359 MB / 382.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.883e-05/0.1513, allocations: 117.8 kB / 0.4921 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.1513, allocations: 4 kB / 0.4921 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.1515, allocations: 44.81 kB / 0.4921 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1515, allocations: 0 / 0.4921 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.1515, allocations: 4 kB / 0.4921 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1515, allocations: 0 / 0.4921 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.1516, allocations: 153.5 kB / 0.4923 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1517, allocations: 4 kB / 0.4923 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1517, allocations: 8.031 kB / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1517, allocations: 0 / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1517, allocations: 0 / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1517, allocations: 0 / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1517, allocations: 0 / 0.4923 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.1518, allocations: 139.4 kB / 0.4924 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/0.1519, allocations: 77.11 kB / 0.4925 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.1519, allocations: 0 / 0.4925 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.843e-05/0.152, allocations: 11.97 kB / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.152, allocations: 0 / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.152, allocations: 0 / 0.4925 GB, free: 6.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.42e-05/0.152, allocations: 79.28 kB / 0.4926 GB, free: 6.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.152, allocations: 0 / 0.4926 GB, free: 6.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.1523, allocations: 39.98 kB / 0.4926 GB, free: 6.586 MB / 382.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.0002721/0.1526, allocations: 131.2 kB / 0.4927 GB, free: 6.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.59e-05/0.1527, allocations: 24.02 kB / 0.4928 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1527, allocations: 0 / 0.4928 GB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.746e-05/0.1527, allocations: 29.7 kB / 0.4928 GB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.153, allocations: 3.938 kB / 0.4928 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002606/0.1532, allocations: 92.84 kB / 0.4929 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.1535, allocations: 0.6729 MB / 0.4935 GB, free: 5.566 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.684e-05/0.1536, allocations: 4.25 kB / 0.4935 GB, free: 5.562 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.1536, allocations: 11.44 kB / 0.4936 GB, free: 5.551 MB / 382.1 MB Notification: Performance of SimCode: time 2.484e-06/0.1536, allocations: 0 / 0.4936 GB, free: 5.551 MB / 382.1 MB Notification: Performance of Templates: time 0.00337/0.157, allocations: 1.077 MB / 0.4946 GB, free: 4.473 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches