Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 80.2 kB / 20.65 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 173 kB / 24.06 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8624/0.8624, allocations: 158.6 MB / 185.9 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1267/0.1267, allocations: 32.38 MB / 270.7 MB, free: 14.52 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 348.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.214e-05/1.351e-05, allocations: 2.312 kB / 348.1 MB, free: 9.184 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0009235/0.000937, allocations: 0.5579 MB / 348.7 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004377/0.001375, allocations: 342.6 kB / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.486e-05/0.001399, allocations: 0 / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.001414, allocations: 3.938 kB / 349 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.163e-05/0.001446, allocations: 0 / 349 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.001764, allocations: 111.6 kB / 349.1 MB, free: 8.184 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.528e-05/0.001809, allocations: 27.86 kB / 349.1 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.368e-05/0.001843, allocations: 7.984 kB / 349.1 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.979e-05/0.001873, allocations: 8 kB / 349.2 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.869e-05/0.001921, allocations: 19.91 kB / 349.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.001934, allocations: 4 kB / 349.2 MB, free: 8.117 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.002076, allocations: 107.9 kB / 349.3 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.198e-05/0.002088, allocations: 7.984 kB / 349.3 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.423e-05/0.002102, allocations: 11.92 kB / 349.3 MB, free: 7.992 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.002233, allocations: 119.7 kB / 349.4 MB, free: 7.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.002235, allocations: 0 / 349.4 MB, free: 7.875 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.002235, allocations: 0 / 349.4 MB, free: 7.875 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.002238, allocations: 0 / 349.4 MB, free: 7.875 MB / 282.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.000236/0.002474, allocations: 392.3 kB / 349.8 MB, free: 7.453 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.00251, allocations: 11.97 kB / 349.8 MB, free: 7.441 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.002535, allocations: 8.891 kB / 349.8 MB, free: 7.434 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.082e-05/0.002595, allocations: 120.5 kB / 349.9 MB, free: 7.289 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.002605, allocations: 4.375 kB / 349.9 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.002624, allocations: 384 / 349.9 MB, free: 7.285 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.234e-05/0.002696, allocations: 54.23 kB / 350 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.002705, allocations: 192 / 350 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.002714, allocations: 384 / 350 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.00272, allocations: 4.375 kB / 350 MB, free: 7.223 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.085e-05/0.002751, allocations: 19.92 kB / 350 MB, free: 7.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001081/0.002859, allocations: 113.1 kB / 350.1 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.003002, allocations: 55.03 kB / 350.2 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.271e-05/0.003025, allocations: 23.67 kB / 350.2 MB, free: 6.973 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/0.003183, allocations: 35.95 kB / 350.2 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.003202, allocations: 41.66 kB / 350.3 MB, free: 6.887 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.003203, allocations: 0 / 350.3 MB, free: 6.887 MB / 282.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.01587/0.01907, allocations: 2.316 MB / 352.6 MB, free: 4.527 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.0191, allocations: 59.34 kB / 352.7 MB, free: 4.457 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.35e-05/0.01915, allocations: 165.9 kB / 352.8 MB, free: 4.277 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.01917, allocations: 33.7 kB / 352.9 MB, free: 4.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.966e-05/0.01919, allocations: 130.9 kB / 353 MB, free: 4.105 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.01924, allocations: 67.42 kB / 353 MB, free: 4.039 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.01932, allocations: 63.33 kB / 353.1 MB, free: 3.969 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.01936, allocations: 0.4923 MB / 353.6 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.09e-05/0.01946, allocations: 123.9 kB / 353.7 MB, free: 3.344 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.768e-05/0.01954, allocations: 123 kB / 353.8 MB, free: 3.227 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003131/0.01986, allocations: 307.6 kB / 354.1 MB, free: 2.922 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.01986, allocations: 0 / 354.1 MB, free: 2.922 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003449/0.0202, allocations: 364.8 kB / 354.5 MB, free: 2.562 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.02022, allocations: 10.59 kB / 354.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.02022, allocations: 0 / 354.5 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.02024, allocations: 7.984 kB / 354.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.02041, allocations: 71.88 kB / 354.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.02041, allocations: 0 / 354.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.05e-05/0.02049, allocations: 19.98 kB / 354.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.02051, allocations: 15.98 kB / 354.6 MB, free: 2.441 MB / 282.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.702e-05/0.02059, allocations: 160.6 kB / 354.8 MB, free: 2.273 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.02062, allocations: 19.89 kB / 354.8 MB, free: 2.254 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004551/0.02108, allocations: 446 kB / 355.2 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.02108, allocations: 4 kB / 355.2 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.02108, allocations: 4 kB / 355.2 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.02109, allocations: 0 / 355.2 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008088/0.02189, allocations: 0.7461 MB / 356 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.0219, allocations: 0 / 356 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.02201, allocations: 71.88 kB / 356.1 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.02202, allocations: 4 kB / 356.1 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.02203, allocations: 15.98 kB / 356.1 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.02203, allocations: 4.188 kB / 356.1 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.02204, allocations: 4 kB / 356.1 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.02232, allocations: 452.4 kB / 356.5 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.987e-06/0.02233, allocations: 7.953 kB / 356.5 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.02235, allocations: 11.98 kB / 356.5 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.02243, allocations: 15.98 kB / 356.6 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.679e-05/0.02245, allocations: 19.91 kB / 356.6 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.02246, allocations: 16 kB / 356.6 MB, free: 356 kB / 282.7 MB Notification: Performance of sorting global known variables: time 1.923e-05/0.02248, allocations: 127.1 kB / 356.7 MB, free: 228 kB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02248, allocations: 4 kB / 356.7 MB, free: 224 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006232/0.02311, allocations: 319.7 kB / 357 MB, free: 15.9 MB / 298.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.0008484/0.02395, allocations: 254.7 kB / 357.3 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.02427, allocations: 266.8 kB / 357.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.02427, allocations: 0 / 357.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.02438, allocations: 107.6 kB / 357.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.02459, allocations: 28.36 kB / 357.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006283/0.02522, allocations: 404.3 kB / 358.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.144e-05/0.02526, allocations: 63.58 kB / 358.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000172/0.02543, allocations: 96.97 kB / 358.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.02561, allocations: 110.2 kB / 358.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.02561, allocations: 4 kB / 358.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Templates: time 0.01838/0.04399, allocations: 19.58 MB / 377.9 MB, free: 10.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9278759686276317]