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.001065/0.001065, allocations: 198.9 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.5 MB / 244.1 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.0008192, allocations: 104.9 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3057/0.3057, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002816/0.0002817, allocations: 4 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3201, allocations: 62.96 MB / 0.5165 GB, free: 37.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.4295, allocations: 86.36 MB / 0.6008 GB, free: 3.035 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.4298, allocations: 67.95 kB / 0.6009 GB, free: 2.969 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004841/0.4347, allocations: 1.789 MB / 0.6026 GB, free: 1.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4347, allocations: 0 / 0.6026 GB, free: 1.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4347, allocations: 0 / 0.6026 GB, free: 1.18 MB / 410.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.0003539/0.4351, allocations: 363.4 kB / 0.603 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.4351, allocations: 12.88 kB / 0.603 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.102e-05/0.4351, allocations: 4.844 kB / 0.603 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.4353, allocations: 168.3 kB / 0.6031 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.4353, allocations: 4.375 kB / 0.6031 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.4353, allocations: 12.36 kB / 0.6032 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.4355, allocations: 54.12 kB / 0.6032 GB, free: 492 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.4355, allocations: 12.08 kB / 0.6032 GB, free: 480 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4355, allocations: 3.938 kB / 0.6032 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.4355, allocations: 4 kB / 0.6032 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.134e-05/0.4356, allocations: 27.97 kB / 0.6033 GB, free: 444 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.4358, allocations: 161.7 kB / 0.6034 GB, free: 232 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.436, allocations: 66.58 kB / 0.6035 GB, free: 156 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.414e-05/0.436, allocations: 24.86 kB / 0.6035 GB, free: 128 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002069/0.4362, allocations: 105.1 kB / 0.6036 GB, free: 4 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/0.4363, allocations: 34.55 kB / 0.6036 GB, free: 15.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.4363, allocations: 4 kB / 0.6036 GB, free: 15.96 MB / 426.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.0354/0.4717, allocations: 2.823 MB / 0.6064 GB, free: 13.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.4718, allocations: 51.41 kB / 0.6064 GB, free: 13.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.4719, allocations: 109.8 kB / 0.6065 GB, free: 12.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.4719, allocations: 29.7 kB / 0.6066 GB, free: 12.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.472, allocations: 80.14 kB / 0.6066 GB, free: 12.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.471e-05/0.4721, allocations: 67 kB / 0.6067 GB, free: 12.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.4721, allocations: 4 kB / 0.6067 GB, free: 12.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.4722, allocations: 322.8 kB / 0.607 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.4726, allocations: 191.9 kB / 0.6072 GB, free: 12.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.4731, allocations: 191.9 kB / 0.6074 GB, free: 12.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.4741, allocations: 444.6 kB / 0.6078 GB, free: 11.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4741, allocations: 4 kB / 0.6078 GB, free: 11.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001052/0.4752, allocations: 491.9 kB / 0.6083 GB, free: 11.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.4752, allocations: 5.562 kB / 0.6083 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4752, allocations: 0 / 0.6083 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.4752, allocations: 0 / 0.6083 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/0.4756, allocations: 83.88 kB / 0.6084 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.4757, allocations: 0 / 0.6084 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.4759, allocations: 27.98 kB / 0.6084 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.4759, allocations: 19.98 kB / 0.6084 GB, free: 10.98 MB / 426.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.0001491/0.4761, allocations: 125.8 kB / 0.6085 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.4761, allocations: 7.906 kB / 0.6085 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.4775, allocations: 0.5641 MB / 0.6091 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.4775, allocations: 4 kB / 0.6091 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.4775, allocations: 4 kB / 0.6091 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4775, allocations: 0 / 0.6091 GB, free: 10.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.4796, allocations: 0.9399 MB / 0.61 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.4797, allocations: 4.25 kB / 0.61 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.48, allocations: 79.88 kB / 0.6101 GB, free: 9.172 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/0.48, allocations: 4.469 kB / 0.6101 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.48, allocations: 15.98 kB / 0.6101 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.48, allocations: 4.188 kB / 0.6101 GB, free: 9.148 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.48, allocations: 8 kB / 0.6101 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009262/0.481, allocations: 494.7 kB / 0.6106 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.481, allocations: 88.95 kB / 0.6107 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.4811, allocations: 11.98 kB / 0.6107 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.4813, allocations: 23.98 kB / 0.6107 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.4813, allocations: 15.98 kB / 0.6107 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.4813, allocations: 15.98 kB / 0.6108 GB, free: 8.453 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.693e-05/0.4814, allocations: 79.28 kB / 0.6108 GB, free: 8.375 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4814, allocations: 0 / 0.6108 GB, free: 8.375 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000927/0.4823, allocations: 351.7 kB / 0.6112 GB, free: 8.031 MB / 426.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.001331/0.4837, allocations: 278.7 kB / 0.6114 GB, free: 7.746 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008611/0.4845, allocations: 363.7 kB / 0.6118 GB, free: 7.391 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4846, allocations: 0 / 0.6118 GB, free: 7.391 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.4849, allocations: 164.2 kB / 0.6119 GB, free: 7.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.4852, allocations: 16 kB / 0.612 GB, free: 7.215 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.4866, allocations: 0.5088 MB / 0.6124 GB, free: 6.652 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.4869, allocations: 0.6929 MB / 0.6131 GB, free: 5.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.4871, allocations: 51.41 kB / 0.6132 GB, free: 5.879 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4871, allocations: 0 / 0.6132 GB, free: 5.879 MB / 426.7 MB Notification: Performance of Templates: time 0.01127/0.4984, allocations: 6.442 MB / 0.6195 GB, free: 15.5 MB / 442.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/jenkins1/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