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.0009576/0.0009578, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007714/0.0007714, allocations: 101 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1829/0.1829, allocations: 44.83 MB / 392 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002244/0.0002244, allocations: 4 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08136/0.0816, allocations: 62.95 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005603/0.08219, allocations: 266 kB / 0.5156 GB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005719/0.08279, allocations: 343.1 kB / 0.5159 GB, free: 2.18 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.447e-05/0.08283, allocations: 4 kB / 0.5159 GB, free: 2.176 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.08285, allocations: 3.938 kB / 0.5159 GB, free: 2.172 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.581e-05/0.08288, allocations: 0 / 0.5159 GB, free: 2.172 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.08323, allocations: 75.8 kB / 0.516 GB, free: 2.098 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.294e-05/0.08329, allocations: 23.97 kB / 0.516 GB, free: 2.074 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.08334, allocations: 0 / 0.516 GB, free: 2.074 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.514e-05/0.08337, allocations: 15.94 kB / 0.516 GB, free: 2.059 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/0.08345, allocations: 11.92 kB / 0.516 GB, free: 2.047 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.08347, allocations: 0 / 0.516 GB, free: 2.047 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002114/0.08369, allocations: 119.9 kB / 0.5161 GB, free: 1.93 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.08371, allocations: 7.938 kB / 0.5161 GB, free: 1.922 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.08374, allocations: 29.7 kB / 0.5162 GB, free: 1.887 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.08387, allocations: 55.91 kB / 0.5162 GB, free: 1.832 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.08388, allocations: 4 kB / 0.5162 GB, free: 1.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08389, allocations: 0 / 0.5162 GB, free: 1.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.0839, allocations: 4 kB / 0.5162 GB, free: 1.824 MB / 346.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.0003811/0.08429, allocations: 353.4 kB / 0.5166 GB, free: 1.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.08433, allocations: 15.97 kB / 0.5166 GB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.08437, allocations: 4 kB / 0.5166 GB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.08448, allocations: 171 kB / 0.5168 GB, free: 1.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.08451, allocations: 3.938 kB / 0.5168 GB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.08454, allocations: 7.906 kB / 0.5168 GB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001202/0.08466, allocations: 53.67 kB / 0.5168 GB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.08468, allocations: 3.984 kB / 0.5168 GB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.0847, allocations: 0 / 0.5168 GB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.08471, allocations: 4 kB / 0.5168 GB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.527e-05/0.08478, allocations: 27.98 kB / 0.5169 GB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.08496, allocations: 185.5 kB / 0.517 GB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.08515, allocations: 54.56 kB / 0.5171 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.08521, allocations: 24.84 kB / 0.5171 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002619/0.08548, allocations: 125 kB / 0.5172 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.978e-05/0.08551, allocations: 30.56 kB / 0.5173 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.08551, allocations: 0 / 0.5173 GB, free: 0.6016 MB / 346.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.2037/0.2892, allocations: 2.802 MB / 0.52 GB, free: 11.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.2893, allocations: 62.47 kB / 0.52 GB, free: 11.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.148e-05/0.2893, allocations: 100.2 kB / 0.5201 GB, free: 11.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2894, allocations: 31.2 kB / 0.5202 GB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.539e-05/0.2894, allocations: 84.94 kB / 0.5203 GB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-05/0.2894, allocations: 63.25 kB / 0.5203 GB, free: 11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.2895, allocations: 3.625 kB / 0.5203 GB, free: 11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.045e-05/0.2895, allocations: 323 kB / 0.5206 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.2899, allocations: 190.8 kB / 0.5208 GB, free: 10.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/0.2903, allocations: 190.8 kB / 0.521 GB, free: 10.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.2908, allocations: 222.4 kB / 0.5212 GB, free: 10.65 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.2908, allocations: 0 / 0.5212 GB, free: 10.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000934/0.2917, allocations: 491.6 kB / 0.5217 GB, free: 10.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2917, allocations: 6.312 kB / 0.5217 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2918, allocations: 3.938 kB / 0.5217 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2918, allocations: 5.156 kB / 0.5217 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.2921, allocations: 78.66 kB / 0.5218 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2922, allocations: 2.172 kB / 0.5218 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.2924, allocations: 30.89 kB / 0.5218 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.2924, allocations: 19.16 kB / 0.5218 GB, free: 10.45 MB / 346.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 8.594e-05/0.2925, allocations: 118 kB / 0.5219 GB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.2925, allocations: 9.141 kB / 0.5219 GB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.2937, allocations: 0.5735 MB / 0.5225 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2938, allocations: 3.844 kB / 0.5225 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2938, allocations: 0 / 0.5225 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2938, allocations: 0.8906 kB / 0.5225 GB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.2957, allocations: 0.9429 MB / 0.5234 GB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2957, allocations: 2 kB / 0.5234 GB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.296, allocations: 80.22 kB / 0.5235 GB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.296, allocations: 1.938 kB / 0.5235 GB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.2961, allocations: 19.16 kB / 0.5235 GB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2961, allocations: 2.578 kB / 0.5235 GB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2961, allocations: 2.25 kB / 0.5235 GB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008134/0.2969, allocations: 0.4897 MB / 0.524 GB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.152e-05/0.2969, allocations: 85.89 kB / 0.5241 GB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.297, allocations: 6.5 kB / 0.5241 GB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.2972, allocations: 36.36 kB / 0.5241 GB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.2972, allocations: 15.5 kB / 0.5241 GB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.2972, allocations: 19.77 kB / 0.5242 GB, free: 9.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.146e-05/0.2973, allocations: 81.94 kB / 0.5242 GB, free: 9.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2973, allocations: 0 / 0.5242 GB, free: 9.148 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000885/0.2982, allocations: 319.1 kB / 0.5245 GB, free: 9.133 MB / 346.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.001169/0.2993, allocations: 232.5 kB / 0.5248 GB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007686/0.3001, allocations: 365.9 kB / 0.5251 GB, free: 8.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3001, allocations: 4.906 kB / 0.5251 GB, free: 8.906 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003347/0.3005, allocations: 166.2 kB / 0.5253 GB, free: 8.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.3007, allocations: 17.27 kB / 0.5253 GB, free: 8.859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3019, allocations: 0.4985 MB / 0.5258 GB, free: 8.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.957e-05/0.302, allocations: 0.6941 MB / 0.5265 GB, free: 7.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3022, allocations: 50.2 kB / 0.5265 GB, free: 7.867 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3022, allocations: 3.031 kB / 0.5265 GB, free: 7.867 MB / 346.7 MB Notification: Performance of Templates: time 0.0113/0.3135, allocations: 6.557 MB / 0.5329 GB, free: 6.465 MB / 346.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