Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.283/2.283, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2622/0.2622, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002468/0.002468, allocations: 76.75 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2289, allocations: 62.44 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00266/0.2316, allocations: 0.5981 MB / 480.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.2328, allocations: 394.7 kB / 480.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.797e-05/0.2328, allocations: 0 / 480.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.663e-05/0.2329, allocations: 0 / 480.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.2329, allocations: 3.938 kB / 480.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004897/0.2334, allocations: 75.84 kB / 481 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.355e-05/0.2335, allocations: 23.92 kB / 481 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.21e-05/0.2336, allocations: 4 kB / 481 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.642e-05/0.2337, allocations: 15.94 kB / 481 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.515e-05/0.2338, allocations: 11.92 kB / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.2338, allocations: 4 kB / 481.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000347/0.2342, allocations: 115.9 kB / 481.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.2342, allocations: 11.94 kB / 481.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.445e-05/0.2342, allocations: 15.92 kB / 481.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.2344, allocations: 67.83 kB / 481.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.2345, allocations: 0 / 481.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2345, allocations: 0 / 481.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2345, allocations: 0 / 481.3 MB, free: 4.418 MB / 350.1 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.0006815/0.2352, allocations: 367.7 kB / 481.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.2352, allocations: 8.031 kB / 481.6 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.2353, allocations: 8.844 kB / 481.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.2355, allocations: 168.3 kB / 481.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.2355, allocations: 4.375 kB / 481.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.2356, allocations: 8.375 kB / 481.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.2358, allocations: 54.17 kB / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.2358, allocations: 192 / 481.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.2358, allocations: 7.938 kB / 481.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2358, allocations: 4 kB / 481.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.236, allocations: 23.98 kB / 481.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002869/0.2363, allocations: 177.5 kB / 482.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.2366, allocations: 50.56 kB / 482.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.119e-05/0.2367, allocations: 32.84 kB / 482.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003417/0.237, allocations: 109.1 kB / 482.3 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.2371, allocations: 30.84 kB / 482.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.2371, allocations: 0 / 482.3 MB, free: 3.203 MB / 350.1 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.06087/0.298, allocations: 2.587 MB / 484.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.2981, allocations: 55.34 kB / 484.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.2983, allocations: 101.9 kB / 485 MB, free: 416 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.2984, allocations: 29.7 kB / 485.1 MB, free: 380 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.2985, allocations: 84.12 kB / 485.1 MB, free: 292 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.2986, allocations: 63.11 kB / 485.2 MB, free: 228 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.2988, allocations: 57.69 kB / 485.3 MB, free: 164 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.2991, allocations: 326.8 kB / 485.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006253/0.2997, allocations: 171.9 kB / 485.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006229/0.3003, allocations: 175.9 kB / 485.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.302, allocations: 415.1 kB / 486.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3021, allocations: 0 / 486.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001773/0.3038, allocations: 461.3 kB / 486.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.3039, allocations: 10.19 kB / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.3039, allocations: 3.984 kB / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.304, allocations: 0 / 486.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006253/0.3046, allocations: 71.94 kB / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.3046, allocations: 0 / 486.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.305, allocations: 19.98 kB / 486.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.258e-05/0.3051, allocations: 15.98 kB / 486.9 MB, free: 14.51 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002347/0.3053, allocations: 129.7 kB / 487 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.3054, allocations: 7.906 kB / 487 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/0.3076, allocations: 0.5351 MB / 487.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.3077, allocations: 4 kB / 487.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3077, allocations: 0 / 487.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.3077, allocations: 0 / 487.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.3113, allocations: 0.8895 MB / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.3113, allocations: 7.984 kB / 488.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/0.3118, allocations: 63.95 kB / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.3118, allocations: 4 kB / 488.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.3119, allocations: 19.98 kB / 488.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.3119, allocations: 192 / 488.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.3119, allocations: 11.94 kB / 488.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.3135, allocations: 460.2 kB / 489 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.87e-05/0.3136, allocations: 85.02 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.89e-05/0.3137, allocations: 11.98 kB / 489.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/0.314, allocations: 15.98 kB / 489.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.3141, allocations: 23.92 kB / 489.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.3142, allocations: 16.45 kB / 489.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.495e-05/0.3143, allocations: 83.28 kB / 489.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3143, allocations: 0 / 489.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3158, allocations: 312 kB / 489.5 MB, free: 11.72 MB / 366.1 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 (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.002466/0.3183, allocations: 235 kB / 489.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.3198, allocations: 339.7 kB / 490.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.3198, allocations: 0 / 490.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005879/0.3204, allocations: 148.2 kB / 490.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.3209, allocations: 14.58 kB / 490.3 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.3232, allocations: 473.7 kB / 490.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.3238, allocations: 0.7007 MB / 491.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.3241, allocations: 51.39 kB / 491.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3241, allocations: 0 / 491.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of Templates: time 0.02167/0.3458, allocations: 6.53 MB / 498 MB, free: 3.215 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches