Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009149/0.0009148, allocations: 193.7 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 244.1 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007866/0.0007867, allocations: 104 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3089/0.3089, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 4 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2733, allocations: 62.96 MB / 0.5165 GB, free: 37.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3775, allocations: 87.36 MB / 0.6018 GB, free: 2.051 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.3778, allocations: 67.97 kB / 0.6018 GB, free: 1.984 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02454/0.4024, allocations: 8.372 MB / 0.61 GB, free: 9.598 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4024, allocations: 0 / 0.61 GB, free: 9.598 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.4024, allocations: 4 kB / 0.61 GB, free: 9.594 MB / 426.7 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.0003149/0.4028, allocations: 347.5 kB / 0.6104 GB, free: 9.203 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.4028, allocations: 8.031 kB / 0.6104 GB, free: 9.195 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.4028, allocations: 4.844 kB / 0.6104 GB, free: 9.191 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.8e-05/0.4029, allocations: 160.4 kB / 0.6105 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.4029, allocations: 4.375 kB / 0.6105 GB, free: 8.992 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.403, allocations: 4.375 kB / 0.6105 GB, free: 8.988 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.4031, allocations: 42.19 kB / 0.6106 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.4031, allocations: 192 / 0.6106 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.4031, allocations: 3.938 kB / 0.6106 GB, free: 8.938 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.4031, allocations: 4 kB / 0.6106 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.132e-05/0.4032, allocations: 0 / 0.6106 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003072/0.4035, allocations: 237 kB / 0.6108 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.868e-05/0.4035, allocations: 34.45 kB / 0.6108 GB, free: 8.609 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.313e-05/0.4035, allocations: 4.859 kB / 0.6108 GB, free: 8.602 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.4036, allocations: 8 kB / 0.6108 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.4036, allocations: 30.56 kB / 0.6109 GB, free: 8.555 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.4036, allocations: 0 / 0.6109 GB, free: 8.555 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001235/0.4037, allocations: 37.69 kB / 0.6109 GB, free: 8.512 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.4038, allocations: 51.41 kB / 0.611 GB, free: 8.449 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.122e-05/0.4038, allocations: 102 kB / 0.6111 GB, free: 8.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.4039, allocations: 25.7 kB / 0.6111 GB, free: 8.309 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.4039, allocations: 84.05 kB / 0.6112 GB, free: 8.223 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.378e-05/0.4039, allocations: 3.938 kB / 0.6112 GB, free: 8.219 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.4039, allocations: 3.938 kB / 0.6112 GB, free: 8.215 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.455e-05/0.404, allocations: 318.8 kB / 0.6115 GB, free: 7.895 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.404, allocations: 4 kB / 0.6115 GB, free: 7.891 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.233e-05/0.4041, allocations: 22.7 kB / 0.6115 GB, free: 7.859 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.478e-05/0.4041, allocations: 26.52 kB / 0.6115 GB, free: 7.824 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4041, allocations: 0 / 0.6115 GB, free: 7.824 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.806e-05/0.4042, allocations: 49.62 kB / 0.6116 GB, free: 7.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4042, allocations: 11.88 kB / 0.6116 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4042, allocations: 4.094 kB / 0.6116 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.4042, allocations: 4 kB / 0.6116 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.966e-05/0.4043, allocations: 0 / 0.6116 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.4043, allocations: 4 kB / 0.6116 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.4043, allocations: 7.906 kB / 0.6116 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.4043, allocations: 4 kB / 0.6116 GB, free: 7.734 MB / 426.7 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): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.4044, allocations: 113.8 kB / 0.6117 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.4044, allocations: 0 / 0.6117 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.857e-05/0.4045, allocations: 56.44 kB / 0.6118 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.4045, allocations: 0 / 0.6118 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4045, allocations: 4 kB / 0.6118 GB, free: 7.555 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4046, allocations: 3.984 kB / 0.6118 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.4047, allocations: 149.6 kB / 0.6119 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4047, allocations: 0 / 0.6119 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.4047, allocations: 0 / 0.6119 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.4047, allocations: 0 / 0.6119 GB, free: 7.355 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.4047, allocations: 4 kB / 0.6119 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4047, allocations: 0 / 0.6119 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4047, allocations: 4.031 kB / 0.6119 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.689e-05/0.4048, allocations: 139.4 kB / 0.6121 GB, free: 7.195 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.879e-05/0.4049, allocations: 77.11 kB / 0.6121 GB, free: 7.102 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.4049, allocations: 0 / 0.6121 GB, free: 7.102 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.265e-05/0.4049, allocations: 0 / 0.6121 GB, free: 7.102 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.283e-05/0.4049, allocations: 7.984 kB / 0.6121 GB, free: 7.094 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.405, allocations: 0 / 0.6121 GB, free: 7.094 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.405, allocations: 79.31 kB / 0.6122 GB, free: 7.016 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.273e-06/0.405, allocations: 0 / 0.6122 GB, free: 7.016 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002933/0.4053, allocations: 55.88 kB / 0.6123 GB, free: 6.961 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000245/0.4056, allocations: 147.1 kB / 0.6124 GB, free: 6.809 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.876e-05/0.4056, allocations: 33.7 kB / 0.6124 GB, free: 6.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4057, allocations: 0 / 0.6124 GB, free: 6.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.019e-05/0.4057, allocations: 33.98 kB / 0.6125 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.4059, allocations: 8 kB / 0.6125 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002/0.4061, allocations: 112.4 kB / 0.6126 GB, free: 6.578 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.4063, allocations: 0.6692 MB / 0.6132 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.133e-05/0.4063, allocations: 11.44 kB / 0.6133 GB, free: 5.871 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4063, allocations: 0 / 0.6133 GB, free: 5.871 MB / 426.7 MB Notification: Performance of Templates: time 0.002065/0.4084, allocations: 0.9059 MB / 0.6141 GB, free: 4.965 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches