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.001963/0.001963, allocations: 92.27 kB / 20.96 MB, free: 3.445 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.002405/0.002405, allocations: 152.9 kB / 24.26 MB, free: 148 kB / 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 1.469/1.469, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.3282/0.3282, allocations: 34.25 MB / 295.2 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.833e-06/1.833e-06, allocations: 0 / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.962e-05/3.145e-05, allocations: 6.25 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001559/0.00159, allocations: 0.5383 MB / 377.7 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007421/0.002332, allocations: 342.6 kB / 378.1 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.787e-05/0.00236, allocations: 0 / 378.1 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.002375, allocations: 3.938 kB / 378.1 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.906e-05/0.002414, allocations: 4 kB / 378.1 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004038/0.002818, allocations: 111.6 kB / 378.2 MB, free: 1.941 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.479e-05/0.002882, allocations: 27.91 kB / 378.2 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.663e-05/0.002919, allocations: 0 / 378.2 MB, free: 1.914 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.002958, allocations: 15.98 kB / 378.2 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.551e-05/0.003014, allocations: 15.86 kB / 378.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.003036, allocations: 7.984 kB / 378.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.00328, allocations: 107.9 kB / 378.4 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.003297, allocations: 11.98 kB / 378.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.003323, allocations: 7.984 kB / 378.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.003552, allocations: 123.6 kB / 378.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.003554, allocations: 0 / 378.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.12e-07/0.003554, allocations: 0 / 378.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.003559, allocations: 0 / 378.5 MB, free: 1.629 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.0004516/0.00401, allocations: 286 kB / 378.8 MB, free: 1.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.004054, allocations: 8.031 kB / 378.8 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.527e-05/0.0041, allocations: 8.891 kB / 378.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.00422, allocations: 113.7 kB / 378.9 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.004234, allocations: 4.312 kB / 378.9 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.004286, allocations: 8.375 kB / 378.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.004416, allocations: 58.17 kB / 379 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.004432, allocations: 8.141 kB / 379 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.004441, allocations: 384 / 379 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.004445, allocations: 4.375 kB / 379 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.252e-05/0.004517, allocations: 31.92 kB / 379 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.004695, allocations: 117.2 kB / 379.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.004909, allocations: 50.5 kB / 379.2 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.39e-05/0.004973, allocations: 24.84 kB / 379.2 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002463/0.005219, allocations: 31.97 kB / 379.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.005253, allocations: 34.56 kB / 379.3 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.032e-06/0.005254, allocations: 0 / 379.3 MB, free: 0.7422 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.04144/0.0467, allocations: 2.572 MB / 381.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.04675, allocations: 55.41 kB / 381.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.04686, allocations: 97.86 kB / 382 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.04691, allocations: 33.7 kB / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.04696, allocations: 80.14 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.04707, allocations: 71.41 kB / 382.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.04721, allocations: 57.69 kB / 382.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.0474, allocations: 326.8 kB / 382.5 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.04782, allocations: 163.9 kB / 382.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.04826, allocations: 186.8 kB / 382.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.04937, allocations: 408.7 kB / 383.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.04937, allocations: 7.938 kB / 383.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001198/0.05057, allocations: 472.6 kB / 383.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.05059, allocations: 8 kB / 383.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.0506, allocations: 3.984 kB / 383.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.05062, allocations: 0 / 383.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.05102, allocations: 71.88 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.05103, allocations: 3.984 kB / 383.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.05124, allocations: 15.98 kB / 383.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.05128, allocations: 20.23 kB / 383.9 MB, free: 12.05 MB / 362.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 0.0001458/0.05143, allocations: 121.8 kB / 384 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.0515, allocations: 15.89 kB / 384 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.05292, allocations: 0.5446 MB / 384.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.05293, allocations: 4 kB / 384.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.05293, allocations: 0 / 384.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.05294, allocations: 0 / 384.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/0.05549, allocations: 0.7803 MB / 385.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.05549, allocations: 0 / 385.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003136/0.0558, allocations: 67.89 kB / 385.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.05581, allocations: 4 kB / 385.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/0.05585, allocations: 15.98 kB / 385.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.05585, allocations: 4.188 kB / 385.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.05586, allocations: 7.938 kB / 385.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.05691, allocations: 464.3 kB / 385.9 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.547e-05/0.05692, allocations: 7.953 kB / 385.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/0.05697, allocations: 11.98 kB / 385.9 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.05718, allocations: 19.98 kB / 385.9 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.56e-05/0.05722, allocations: 19.91 kB / 386 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.05725, allocations: 12 kB / 386 MB, free: 9.859 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.164e-05/0.05731, allocations: 87.27 kB / 386 MB, free: 9.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05731, allocations: 0 / 386 MB, free: 9.773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009552/0.05826, allocations: 315.6 kB / 386.4 MB, free: 9.465 MB / 362.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.001441/0.0597, allocations: 262.7 kB / 386.6 MB, free: 9.195 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008826/0.06059, allocations: 331.7 kB / 386.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.06059, allocations: 0 / 386.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003953/0.06099, allocations: 144.2 kB / 387.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.06131, allocations: 31.08 kB / 387.1 MB, free: 8.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.06272, allocations: 425.6 kB / 387.5 MB, free: 8.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.427e-05/0.06282, allocations: 83.42 kB / 387.6 MB, free: 8.137 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003175/0.06313, allocations: 97.16 kB / 387.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.06335, allocations: 52.47 kB / 387.8 MB, free: 7.988 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.06335, allocations: 0 / 387.8 MB, free: 7.988 MB / 362.7 MB Notification: Performance of Templates: time 0.02842/0.09177, allocations: 18.15 MB / 405.9 MB, free: 5.828 MB / 378.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.972115264041349]