Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009974/0.0009974, allocations: 198 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.6 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007726/0.0007726, allocations: 104.7 kB / 295.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.285/0.285, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002486, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2783, allocations: 62.95 MB / 0.5159 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005685/0.2789, allocations: 264.8 kB / 0.5161 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004879/0.2794, allocations: 341.6 kB / 0.5164 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.985e-05/0.2795, allocations: 0 / 0.5164 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.35e-05/0.2795, allocations: 0 / 0.5164 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.634e-05/0.2795, allocations: 4 kB / 0.5164 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.2798, allocations: 83.03 kB / 0.5165 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.5e-05/0.2799, allocations: 22.47 kB / 0.5166 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.267e-05/0.2799, allocations: 0 / 0.5166 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.028e-05/0.2799, allocations: 20.95 kB / 0.5166 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.705e-05/0.28, allocations: 19.23 kB / 0.5166 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.28, allocations: 0 / 0.5166 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.2802, allocations: 106.6 kB / 0.5167 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.2802, allocations: 10.94 kB / 0.5167 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.2802, allocations: 43.97 kB / 0.5167 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.2803, allocations: 60.19 kB / 0.5168 GB, free: 36.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2804, allocations: 3 kB / 0.5168 GB, free: 36.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2804, allocations: 0 / 0.5168 GB, free: 36.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.2804, allocations: 3.938 kB / 0.5168 GB, free: 36.84 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003108/0.2807, allocations: 352.3 kB / 0.5171 GB, free: 36.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2807, allocations: 12.12 kB / 0.5172 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.2808, allocations: 4 kB / 0.5172 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.825e-05/0.2808, allocations: 164.4 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.2809, allocations: 7.375 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.2809, allocations: 11.25 kB / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.281, allocations: 51.98 kB / 0.5174 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.281, allocations: 6.906 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-06/0.281, allocations: 3.938 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.281, allocations: 0 / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.572e-05/0.2811, allocations: 25.98 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.2812, allocations: 171.5 kB / 0.5176 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.2814, allocations: 59.33 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.885e-05/0.2815, allocations: 25.95 kB / 0.5177 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002244/0.2817, allocations: 115.2 kB / 0.5178 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.305e-05/0.2817, allocations: 42.56 kB / 0.5178 GB, free: 35.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.2817, allocations: 0 / 0.5178 GB, free: 35.81 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.03777/0.3195, allocations: 2.83 MB / 0.5206 GB, free: 35.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.3195, allocations: 53.91 kB / 0.5206 GB, free: 35.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.914e-05/0.3196, allocations: 102.5 kB / 0.5207 GB, free: 34.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.3197, allocations: 32.7 kB / 0.5208 GB, free: 34.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.873e-05/0.3197, allocations: 84.08 kB / 0.5208 GB, free: 34.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/0.3197, allocations: 59.75 kB / 0.5209 GB, free: 34.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.3198, allocations: 6.938 kB / 0.5209 GB, free: 34.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.391e-05/0.3198, allocations: 326.1 kB / 0.5212 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.3202, allocations: 181 kB / 0.5214 GB, free: 34.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.3205, allocations: 194.2 kB / 0.5216 GB, free: 34.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000895/0.3214, allocations: 453.5 kB / 0.522 GB, free: 34.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3214, allocations: 0 / 0.522 GB, free: 34.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009137/0.3223, allocations: 493.1 kB / 0.5225 GB, free: 33.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3224, allocations: 7.531 kB / 0.5225 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3224, allocations: 0 / 0.5225 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3224, allocations: 2.219 kB / 0.5225 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.3228, allocations: 74.61 kB / 0.5226 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3228, allocations: 11.05 kB / 0.5226 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.323, allocations: 22.53 kB / 0.5226 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3231, allocations: 20.27 kB / 0.5226 GB, free: 33.95 MB / 378.7 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001083/0.3232, allocations: 119.2 kB / 0.5227 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.3232, allocations: 10.41 kB / 0.5227 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.3244, allocations: 0.577 MB / 0.5233 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3244, allocations: 2.281 kB / 0.5233 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3244, allocations: 0 / 0.5233 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3244, allocations: 0 / 0.5233 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.3263, allocations: 0.9501 MB / 0.5242 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3263, allocations: 3.375 kB / 0.5242 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.3266, allocations: 83.03 kB / 0.5243 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3266, allocations: 2.469 kB / 0.5243 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.3267, allocations: 17.97 kB / 0.5243 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.3267, allocations: 3 kB / 0.5243 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3267, allocations: 2.406 kB / 0.5243 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007829/0.3275, allocations: 0.4885 MB / 0.5248 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.3275, allocations: 86.95 kB / 0.5249 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.3275, allocations: 7.281 kB / 0.5249 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.3277, allocations: 23.72 kB / 0.5249 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.263e-05/0.3278, allocations: 15.56 kB / 0.5249 GB, free: 32.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.3278, allocations: 20.92 kB / 0.525 GB, free: 32.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.352e-05/0.3278, allocations: 84.92 kB / 0.525 GB, free: 32.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3278, allocations: 0 / 0.525 GB, free: 32.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000779/0.3286, allocations: 311.1 kB / 0.5253 GB, free: 32.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001227/0.3299, allocations: 240.8 kB / 0.5256 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.3306, allocations: 371.2 kB / 0.5259 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3306, allocations: 0 / 0.5259 GB, free: 32.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.3309, allocations: 163.2 kB / 0.5261 GB, free: 32.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3312, allocations: 13.62 kB / 0.5261 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.3324, allocations: 0.499 MB / 0.5266 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001074/0.3325, allocations: 0.6985 MB / 0.5273 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.3327, allocations: 53.47 kB / 0.5273 GB, free: 31.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3327, allocations: 2.906 kB / 0.5273 GB, free: 31.32 MB / 378.7 MB Notification: Performance of Templates: time 0.009691/0.3424, allocations: 6.543 MB / 0.5337 GB, free: 30.81 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches