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.000895/0.000895, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0008268/0.0008268, allocations: 160.9 kB / 23.95 MB, free: 0.6133 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.8632/0.8632, allocations: 177 MB / 204.1 MB, free: 5.754 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.2316/0.2316, allocations: 34.24 MB / 294.8 MB, free: 0.6992 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.044e-05, allocations: 2.281 kB / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0012/0.00122, allocations: 0.5361 MB / 442.7 MB, free: 1.055 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005055/0.001726, allocations: 342.6 kB / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.96e-05/0.001756, allocations: 0 / 443 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.83e-05/0.001774, allocations: 3.938 kB / 443 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.938e-05/0.001803, allocations: 0 / 443 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003746/0.002178, allocations: 107.5 kB / 443.1 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.125e-05/0.002239, allocations: 23.98 kB / 443.1 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.855e-05/0.002288, allocations: 11.92 kB / 443.2 MB, free: 0.5742 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.454e-05/0.002322, allocations: 15.92 kB / 443.2 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.327e-05/0.002375, allocations: 15.97 kB / 443.2 MB, free: 0.543 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.002394, allocations: 4 kB / 443.2 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.002553, allocations: 103.9 kB / 443.3 MB, free: 448 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.00257, allocations: 11.92 kB / 443.3 MB, free: 436 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.712e-05/0.002587, allocations: 7.984 kB / 443.3 MB, free: 428 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.002728, allocations: 119.6 kB / 443.4 MB, free: 308 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.00273, allocations: 0 / 443.4 MB, free: 308 kB / 410.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.002731, allocations: 0 / 443.4 MB, free: 308 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.002735, allocations: 4 kB / 443.4 MB, free: 304 kB / 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.1592/0.162, allocations: 288.9 kB / 443.7 MB, free: 44.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.162, allocations: 10.97 kB / 443.7 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/0.1621, allocations: 34.12 kB / 443.8 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.1621, allocations: 3.625 kB / 443.8 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.416e-05/0.1621, allocations: 110.6 kB / 443.9 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.1621, allocations: 4.219 kB / 443.9 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.1622, allocations: 9.484 kB / 443.9 MB, free: 44.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.033e-05/0.1623, allocations: 53.86 kB / 443.9 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1623, allocations: 192 / 443.9 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.114e-06/0.1623, allocations: 3.625 kB / 443.9 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1623, allocations: 10.59 kB / 443.9 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.106e-05/0.1623, allocations: 28 kB / 444 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001001/0.1624, allocations: 140.7 kB / 444.1 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.1626, allocations: 54.03 kB / 444.2 MB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.109e-05/0.1626, allocations: 28.33 kB / 444.2 MB, free: 43.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001536/0.1628, allocations: 26.89 kB / 444.2 MB, free: 43.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.478e-06/0.1628, allocations: 32 kB / 444.3 MB, free: 43.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 9.41e-07/0.1628, allocations: 2.688 kB / 444.3 MB, free: 43.81 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.01727/0.1801, allocations: 2.574 MB / 446.8 MB, free: 43.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.1801, allocations: 54.31 kB / 446.9 MB, free: 43.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.998e-05/0.1801, allocations: 102.9 kB / 447 MB, free: 43.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.1801, allocations: 28.61 kB / 447 MB, free: 43.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.511e-05/0.1802, allocations: 84.14 kB / 447.1 MB, free: 43.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.1802, allocations: 66.33 kB / 447.2 MB, free: 43.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.1803, allocations: 52.02 kB / 447.2 MB, free: 43.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.745e-05/0.1803, allocations: 320.8 kB / 447.5 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.1805, allocations: 178.2 kB / 447.7 MB, free: 42.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.1807, allocations: 174.7 kB / 447.9 MB, free: 42.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005068/0.1812, allocations: 417.3 kB / 448.3 MB, free: 42.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1812, allocations: 7.938 kB / 448.3 MB, free: 42.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000499/0.1817, allocations: 457.4 kB / 448.7 MB, free: 42.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1817, allocations: 8.906 kB / 448.7 MB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1817, allocations: 0 / 448.7 MB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1817, allocations: 7.5 kB / 448.7 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1819, allocations: 71.08 kB / 448.8 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1819, allocations: 2.938 kB / 448.8 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.096e-05/0.182, allocations: 16.48 kB / 448.8 MB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.182, allocations: 20.48 kB / 448.9 MB, free: 42.21 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 6.168e-05/0.1821, allocations: 129.2 kB / 449 MB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.1821, allocations: 10.78 kB / 449 MB, free: 42.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006214/0.1827, allocations: 0.5343 MB / 449.5 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1827, allocations: 2.875 kB / 449.5 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1827, allocations: 3.719 kB / 449.5 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1827, allocations: 3.281 kB / 449.5 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1837, allocations: 0.8123 MB / 450.3 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.1837, allocations: 2.781 kB / 450.3 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.1839, allocations: 62.58 kB / 450.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1839, allocations: 6.719 kB / 450.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.1839, allocations: 18.88 kB / 450.4 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1839, allocations: 6.125 kB / 450.4 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1839, allocations: 6.875 kB / 450.4 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.1843, allocations: 452.8 kB / 450.9 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-06/0.1843, allocations: 7.016 kB / 450.9 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.1843, allocations: 14.12 kB / 450.9 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.48e-05/0.1844, allocations: 14.84 kB / 450.9 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.752e-05/0.1844, allocations: 23.19 kB / 450.9 MB, free: 41.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.1845, allocations: 22.11 kB / 451 MB, free: 41.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.3e-05/0.1845, allocations: 84.97 kB / 451.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1845, allocations: 0 / 451.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004886/0.185, allocations: 315 kB / 451.4 MB, free: 41.05 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.001285/0.1862, allocations: 1.145 MB / 452.5 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.1866, allocations: 326.7 kB / 452.8 MB, free: 40.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1867, allocations: 3.031 kB / 452.8 MB, free: 40.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.1868, allocations: 138 kB / 453 MB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.187, allocations: 10.36 kB / 453 MB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008691/0.1879, allocations: 0.5075 MB / 453.5 MB, free: 39.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.851e-05/0.1879, allocations: 75.16 kB / 453.6 MB, free: 39.74 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.1881, allocations: 93.36 kB / 453.6 MB, free: 39.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.1882, allocations: 58.31 kB / 453.7 MB, free: 39.69 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1882, allocations: 0 / 453.7 MB, free: 39.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.2144, allocations: 19.92 MB / 473.6 MB, free: 37.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.558/6.772, allocations: 10.23 kB / 473.6 MB, free: 37.12 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] 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: 8.653430783189833]