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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 92.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.007209/0.007209, allocations: 157.9 kB / 24.7 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8914/0.8914, allocations: 177 MB / 204.9 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2404/0.2404, allocations: 34.24 MB / 295.6 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 180] 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=5000,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=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 443.4 MB, free: 1.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.52e-05/2.672e-05, allocations: 12.75 kB / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001103/0.00113, allocations: 0.5283 MB / 443.9 MB, free: 0.5352 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005815/0.001711, allocations: 334.7 kB / 444.3 MB, free: 212 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.977e-05/0.001741, allocations: 0 / 444.3 MB, free: 212 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.86e-05/0.00176, allocations: 7.938 kB / 444.3 MB, free: 204 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.204e-05/0.001792, allocations: 7.875 kB / 444.3 MB, free: 196 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.002211, allocations: 103.6 kB / 444.4 MB, free: 92 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.788e-05/0.002279, allocations: 23.92 kB / 444.4 MB, free: 68 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.322e-05/0.002332, allocations: 4 kB / 444.4 MB, free: 64 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.035e-05/0.002373, allocations: 19.91 kB / 444.4 MB, free: 44 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.394e-05/0.002427, allocations: 11.98 kB / 444.4 MB, free: 32 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.002449, allocations: 0 / 444.4 MB, free: 32 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1815/0.1839, allocations: 115.4 kB / 444.6 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.222e-05/0.184, allocations: 8.641 kB / 444.6 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.184, allocations: 6.672 kB / 444.6 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002642/0.1842, allocations: 118.9 kB / 444.7 MB, free: 43.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1843, allocations: 0 / 444.7 MB, free: 43.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1843, allocations: 0 / 444.7 MB, free: 43.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1843, allocations: 2.844 kB / 444.7 MB, free: 43.71 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.0004582/0.1847, allocations: 293.6 kB / 445 MB, free: 43.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.1848, allocations: 11.84 kB / 445 MB, free: 43.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.1848, allocations: 7.859 kB / 445 MB, free: 43.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.91e-05/0.1849, allocations: 107.2 kB / 445.1 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1849, allocations: 7.016 kB / 445.1 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.185, allocations: 4.531 kB / 445.1 MB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.1851, allocations: 55.45 kB / 445.2 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1851, allocations: 6.797 kB / 445.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.1851, allocations: 1.125 kB / 445.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1851, allocations: 384 / 445.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.09e-05/0.1852, allocations: 35.16 kB / 445.2 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.1853, allocations: 114.9 kB / 445.3 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.1856, allocations: 53.19 kB / 445.4 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.683e-05/0.1856, allocations: 23.88 kB / 445.4 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.1858, allocations: 30.73 kB / 445.4 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.1858, allocations: 38.91 kB / 445.5 MB, free: 43.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 9.32e-07/0.1858, allocations: 0 / 445.5 MB, free: 43.08 MB / 410.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.0176/0.2034, allocations: 2.566 MB / 448 MB, free: 42.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.2034, allocations: 62.83 kB / 448.1 MB, free: 42.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.2035, allocations: 98.77 kB / 448.2 MB, free: 42.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2035, allocations: 33.27 kB / 448.2 MB, free: 42.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.905e-05/0.2035, allocations: 85.89 kB / 448.3 MB, free: 42.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2036, allocations: 65.69 kB / 448.4 MB, free: 42.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.598e-05/0.2036, allocations: 60.72 kB / 448.4 MB, free: 42.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.2037, allocations: 317.7 kB / 448.7 MB, free: 42.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.2039, allocations: 172.4 kB / 448.9 MB, free: 41.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.2041, allocations: 178.5 kB / 449.1 MB, free: 41.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.2046, allocations: 416 kB / 449.5 MB, free: 41.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2046, allocations: 2.469 kB / 449.5 MB, free: 41.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005525/0.2052, allocations: 462.2 kB / 449.9 MB, free: 41.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.2052, allocations: 8.625 kB / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2052, allocations: 0 / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.2052, allocations: 0 / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.2054, allocations: 75.59 kB / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2054, allocations: 2.969 kB / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.55e-05/0.2055, allocations: 15.2 kB / 450 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.2055, allocations: 18.84 kB / 450.1 MB, free: 41.54 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.592e-05/0.2056, allocations: 118.4 kB / 450.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.2056, allocations: 13.8 kB / 450.2 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/0.2063, allocations: 0.5471 MB / 450.7 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.2063, allocations: 2.969 kB / 450.7 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2063, allocations: 0 / 450.7 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2063, allocations: 3.75 kB / 450.7 MB, free: 41.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.2074, allocations: 0.7782 MB / 451.5 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2074, allocations: 4.188 kB / 451.5 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.2076, allocations: 67.67 kB / 451.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2076, allocations: 3.375 kB / 451.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.2076, allocations: 11.97 kB / 451.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.2076, allocations: 9.375 kB / 451.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.2076, allocations: 6.719 kB / 451.6 MB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.2081, allocations: 459.4 kB / 452.1 MB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.163e-05/0.2081, allocations: 13.89 kB / 452.1 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.2081, allocations: 6.094 kB / 452.1 MB, free: 40.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.2082, allocations: 21.75 kB / 452.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.449e-05/0.2082, allocations: 23.3 kB / 452.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.2082, allocations: 14.38 kB / 452.1 MB, free: 40.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.949e-05/0.2083, allocations: 81.31 kB / 452.2 MB, free: 40.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2083, allocations: 4 kB / 452.2 MB, free: 40.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006526/0.2089, allocations: 325.1 kB / 452.5 MB, free: 40.43 MB / 410.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 (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.0008863/0.2098, allocations: 252.4 kB / 452.8 MB, free: 40.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004822/0.2103, allocations: 325.9 kB / 453.1 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2103, allocations: 0 / 453.1 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.2105, allocations: 144.9 kB / 453.3 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.2107, allocations: 16.67 kB / 453.3 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.2114, allocations: 448.5 kB / 453.7 MB, free: 39.94 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.958e-05/0.2114, allocations: 81.19 kB / 453.8 MB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.2116, allocations: 56.73 kB / 453.8 MB, free: 39.86 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2116, allocations: 0 / 453.8 MB, free: 39.86 MB / 410.7 MB Notification: Performance of Templates: time 0.00698/0.2185, allocations: 6.58 MB / 460.4 MB, free: 39.4 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.635024160146713]