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.001266/0.001266, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1971/0.1971, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 71.89 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.1002, allocations: 62.44 MB / 481.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001707/0.102, allocations: 0.5484 MB / 482 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005935/0.1026, allocations: 365.3 kB / 482.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.202e-05/0.1026, allocations: 0 / 482.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.1027, allocations: 3.938 kB / 482.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.742e-05/0.1027, allocations: 0 / 482.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.1031, allocations: 107.6 kB / 482.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.942e-05/0.1031, allocations: 27.92 kB / 482.5 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.1032, allocations: 7.984 kB / 482.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.1e-05/0.1032, allocations: 11.94 kB / 482.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.499e-05/0.1033, allocations: 11.92 kB / 482.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.1033, allocations: 4 kB / 482.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1035, allocations: 115.9 kB / 482.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.809e-05/0.1035, allocations: 15.92 kB / 482.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.069e-05/0.1035, allocations: 11.94 kB / 482.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.1037, allocations: 103.7 kB / 482.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1037, allocations: 0 / 482.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1037, allocations: 4 kB / 482.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.1037, allocations: 0 / 482.8 MB, free: 3.242 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.0003802/0.1041, allocations: 355.4 kB / 483.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.1042, allocations: 12.03 kB / 483.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.1042, allocations: 4.844 kB / 483.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.78e-05/0.1043, allocations: 168.3 kB / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.1043, allocations: 4.375 kB / 483.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.1043, allocations: 4.375 kB / 483.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.1045, allocations: 58.17 kB / 483.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1045, allocations: 8.172 kB / 483.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.1045, allocations: 11.88 kB / 483.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1045, allocations: 0 / 483.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.962e-05/0.1046, allocations: 23.98 kB / 483.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.1047, allocations: 173.6 kB / 483.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.1049, allocations: 58.59 kB / 483.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.203e-05/0.105, allocations: 24.84 kB / 483.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002364/0.1052, allocations: 109.1 kB / 483.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.1053, allocations: 34.56 kB / 483.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.203e-06/0.1053, allocations: 4 kB / 483.8 MB, free: 2.027 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.04282/0.1481, allocations: 2.586 MB / 486.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.1482, allocations: 55.41 kB / 486.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.445e-05/0.1483, allocations: 101.8 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1483, allocations: 29.7 kB / 486.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.1484, allocations: 84.14 kB / 486.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.1484, allocations: 67.05 kB / 486.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.1486, allocations: 53.69 kB / 486.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1487, allocations: 322.8 kB / 487.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.149, allocations: 175.9 kB / 487.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003431/0.1494, allocations: 171.9 kB / 487.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009342/0.1503, allocations: 412.7 kB / 487.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.1504, allocations: 0 / 487.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009667/0.1513, allocations: 467.6 kB / 488.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1513, allocations: 4 kB / 488.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1514, allocations: 0 / 488.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1514, allocations: 4 kB / 488.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.1518, allocations: 71.88 kB / 488.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1518, allocations: 4 kB / 488.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.152, allocations: 19.97 kB / 488.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.152, allocations: 15.98 kB / 488.4 MB, free: 13.34 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.000123/0.1522, allocations: 121.7 kB / 488.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.1522, allocations: 7.906 kB / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.1534, allocations: 0.5446 MB / 489.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1534, allocations: 0 / 489.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1534, allocations: 256 / 489.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.1534, allocations: 3.984 kB / 489.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.1555, allocations: 0.8893 MB / 490 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1555, allocations: 0 / 490 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.1558, allocations: 71.89 kB / 490 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1558, allocations: 0 / 490 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.1558, allocations: 15.98 kB / 490 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1558, allocations: 8.188 kB / 490.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1558, allocations: 0 / 490.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008512/0.1567, allocations: 466.7 kB / 490.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.1567, allocations: 89 kB / 490.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.1568, allocations: 8 kB / 490.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.157, allocations: 19.98 kB / 490.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.157, allocations: 15.92 kB / 490.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.157, allocations: 15.98 kB / 490.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.493e-05/0.1571, allocations: 83.28 kB / 490.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1571, allocations: 4 kB / 490.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008052/0.1579, allocations: 312 kB / 491 MB, free: 10.55 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.001149/0.1591, allocations: 227.3 kB / 491.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007614/0.1598, allocations: 347.7 kB / 491.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1598, allocations: 0 / 491.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.1602, allocations: 152.2 kB / 491.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.1604, allocations: 14.33 kB / 491.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.1616, allocations: 414.4 kB / 492.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1619, allocations: 0.6965 MB / 492.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002606/0.1622, allocations: 92.83 kB / 493 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.1624, allocations: 51.39 kB / 493 MB, free: 8.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1624, allocations: 4 kB / 493 MB, free: 8.496 MB / 366.1 MB Notification: Performance of Templates: time 0.02136/0.1837, allocations: 17.77 MB / 0.4988 GB, free: 6.734 MB / 382.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 -s cvode -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