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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009177/0.0009178, allocations: 95.72 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1878/0.1878, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09755/0.09782, allocations: 63.56 MB / 483.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005709/0.09844, allocations: 277.3 kB / 483.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006615/0.09911, allocations: 382.8 kB / 483.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.472e-05/0.09914, allocations: 4 kB / 483.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.09916, allocations: 0 / 483.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.912e-05/0.09919, allocations: 0 / 483.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002987/0.0995, allocations: 75.81 kB / 483.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.002e-05/0.09956, allocations: 23.92 kB / 483.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.804e-05/0.09961, allocations: 7.984 kB / 483.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.541e-05/0.09964, allocations: 7.938 kB / 483.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.621e-05/0.09971, allocations: 19.91 kB / 484 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.09973, allocations: 4 kB / 484 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.09994, allocations: 115.9 kB / 484.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.09997, allocations: 15.92 kB / 484.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.1, allocations: 45.62 kB / 484.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.1002, allocations: 87.75 kB / 484.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1002, allocations: 0 / 484.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1002, allocations: 0 / 484.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1002, allocations: 0 / 484.2 MB, free: 3.039 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.0003713/0.1006, allocations: 355.7 kB / 484.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1006, allocations: 8.875 kB / 484.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.1007, allocations: 42.73 kB / 484.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.146e-05/0.1007, allocations: 0.9375 kB / 484.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.1008, allocations: 176.2 kB / 484.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1008, allocations: 4.375 kB / 484.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.376e-05/0.1009, allocations: 12.31 kB / 484.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.101, allocations: 54.23 kB / 484.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.101, allocations: 3.938 kB / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.101, allocations: 4 kB / 484.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.101, allocations: 0 / 484.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.387e-05/0.1011, allocations: 23.98 kB / 484.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001868/0.1013, allocations: 165.6 kB / 485.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.1015, allocations: 62.55 kB / 485.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.1016, allocations: 28.84 kB / 485.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000263/0.1018, allocations: 109.1 kB / 485.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1019, allocations: 54.48 kB / 485.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.535e-06/0.1019, allocations: 3.984 kB / 485.3 MB, free: 1.762 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.04564/0.1475, allocations: 2.818 MB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.1476, allocations: 55.41 kB / 488.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.55e-05/0.1477, allocations: 97.86 kB / 488.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.864e-05/0.1478, allocations: 33.64 kB / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.1478, allocations: 84.14 kB / 488.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.339e-05/0.1479, allocations: 63.09 kB / 488.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.086e-05/0.148, allocations: 17.72 kB / 488.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1481, allocations: 326.8 kB / 488.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004032/0.1485, allocations: 192.4 kB / 489 MB, free: 14.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.1489, allocations: 190.5 kB / 489.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.15, allocations: 444.7 kB / 489.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.15, allocations: 0 / 489.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001086/0.1511, allocations: 499.4 kB / 490.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1511, allocations: 7.938 kB / 490.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1511, allocations: 0 / 490.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1512, allocations: 4 kB / 490.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.1516, allocations: 75.88 kB / 490.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.1516, allocations: 4 kB / 490.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1518, allocations: 31.97 kB / 490.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.1519, allocations: 12 kB / 490.2 MB, free: 12.76 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.0001336/0.152, allocations: 133.6 kB / 490.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.152, allocations: 7.906 kB / 490.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.1534, allocations: 0.5681 MB / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1534, allocations: 0 / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1534, allocations: 0 / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1534, allocations: 3.984 kB / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/0.1557, allocations: 0.9478 MB / 491.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1557, allocations: 4 kB / 491.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.156, allocations: 80.08 kB / 492 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1561, allocations: 0 / 492 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.1561, allocations: 19.98 kB / 492 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.1561, allocations: 4 kB / 492 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1561, allocations: 0 / 492 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009875/0.1571, allocations: 498.7 kB / 492.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.1572, allocations: 89.02 kB / 492.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.1572, allocations: 7.984 kB / 492.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1574, allocations: 23.98 kB / 492.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.702e-05/0.1575, allocations: 15.92 kB / 492.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.1575, allocations: 23.98 kB / 492.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.1576, allocations: 79.28 kB / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1576, allocations: 0 / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000943/0.1585, allocations: 323.9 kB / 493 MB, free: 9.828 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.002658/0.1612, allocations: 1.147 MB / 494.2 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008261/0.162, allocations: 370.5 kB / 494.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.162, allocations: 0 / 494.5 MB, free: 8.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.1624, allocations: 171.8 kB / 494.7 MB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.1627, allocations: 8 kB / 494.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1645, allocations: 0.5722 MB / 495.3 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.1648, allocations: 0.7044 MB / 496 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003658/0.1652, allocations: 88.89 kB / 496.1 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.1654, allocations: 59.39 kB / 496.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1654, allocations: 0 / 496.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.1961, allocations: 18.56 MB / 0.5026 GB, free: 4.18 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.1964, allocations: 209.7 kB / 0.5028 GB, free: 3.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/1.986, allocations: 4 kB / 0.5028 GB, free: 3.926 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > 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