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.001138/0.001138, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 214.4 kB / 18.58 MB, free: 4.406 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 / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1973/0.1973, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 77.06 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.09845, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001614/0.1001, allocations: 0.5406 MB / 480.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005996/0.1007, allocations: 373.4 kB / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.446e-05/0.1008, allocations: 0 / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.351e-05/0.1008, allocations: 0 / 481 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.688e-05/0.1008, allocations: 7.938 kB / 481 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.1012, allocations: 91.66 kB / 481.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.914e-05/0.1013, allocations: 27.98 kB / 481.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.024e-05/0.1013, allocations: 7.984 kB / 481.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.104e-05/0.1014, allocations: 11.92 kB / 481.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.038e-05/0.1014, allocations: 19.92 kB / 481.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.1014, allocations: 0 / 481.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.1016, allocations: 119.9 kB / 481.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.839e-05/0.1017, allocations: 15.86 kB / 481.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.1017, allocations: 11.94 kB / 481.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.1019, allocations: 103.9 kB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1019, allocations: 3.938 kB / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1019, allocations: 0 / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1019, allocations: 4 kB / 481.4 MB, free: 3.848 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.0003783/0.1023, allocations: 359.5 kB / 481.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1023, allocations: 8.031 kB / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.195e-05/0.1024, allocations: 34.73 kB / 481.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.1024, allocations: 8.844 kB / 481.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.546e-05/0.1025, allocations: 172.3 kB / 482 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.1025, allocations: 384 / 482 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.1025, allocations: 4.375 kB / 482 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.1026, allocations: 62.17 kB / 482.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1027, allocations: 3.938 kB / 482.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.1027, allocations: 0 / 482.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1027, allocations: 4 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.082e-05/0.1027, allocations: 27.98 kB / 482.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.1029, allocations: 169.6 kB / 482.3 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/0.1031, allocations: 58.59 kB / 482.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.937e-05/0.1032, allocations: 28.84 kB / 482.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002392/0.1034, allocations: 109.1 kB / 482.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.1034, allocations: 30.56 kB / 482.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.1035, allocations: 0 / 482.5 MB, free: 2.598 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.04208/0.1455, allocations: 2.59 MB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.1456, allocations: 51.41 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.598e-05/0.1457, allocations: 101.9 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.1457, allocations: 33.69 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.005e-05/0.1458, allocations: 84.14 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/0.1458, allocations: 59.11 kB / 485.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.146, allocations: 53.69 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.315e-05/0.1461, allocations: 326.8 kB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.1464, allocations: 175.9 kB / 486 MB, free: 15.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/0.1468, allocations: 175.9 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009789/0.1478, allocations: 412.6 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1478, allocations: 4 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009852/0.1488, allocations: 463.8 kB / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1488, allocations: 4 kB / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1488, allocations: 0 / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1488, allocations: 0 / 487 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.1492, allocations: 75.88 kB / 487.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.1492, allocations: 0 / 487.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.1495, allocations: 23.97 kB / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.1495, allocations: 12 kB / 487.1 MB, free: 13.91 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.0001152/0.1496, allocations: 130.2 kB / 487.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.1497, allocations: 7.906 kB / 487.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.151, allocations: 0.5406 MB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.151, allocations: 4 kB / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.151, allocations: 0 / 487.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.151, allocations: 7.922 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.153, allocations: 0.8776 MB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.153, allocations: 4.234 kB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.1534, allocations: 72.08 kB / 488.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.1534, allocations: 4 kB / 488.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/0.1535, allocations: 19.98 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.1535, allocations: 4 kB / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1535, allocations: 0 / 488.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.1548, allocations: 470.5 kB / 489.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.1548, allocations: 85.02 kB / 489.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.1548, allocations: 7.984 kB / 489.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1551, allocations: 19.98 kB / 489.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.1551, allocations: 11.98 kB / 489.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.1551, allocations: 19.98 kB / 489.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.293e-05/0.1552, allocations: 79.28 kB / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1552, allocations: 0 / 489.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00078/0.1559, allocations: 323.9 kB / 489.8 MB, free: 11.11 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.002299/0.1583, allocations: 1.115 MB / 490.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007956/0.1591, allocations: 342.5 kB / 491.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.1591, allocations: 0 / 491.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003414/0.1594, allocations: 151.7 kB / 491.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.1597, allocations: 16.36 kB / 491.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.1614, allocations: 500 kB / 491.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.1616, allocations: 0.6965 MB / 492.6 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000349/0.162, allocations: 96.88 kB / 492.7 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.1622, allocations: 59.41 kB / 492.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1622, allocations: 0 / 492.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03509/0.1973, allocations: 18.91 MB / 0.4996 GB, free: 5.215 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.04, allocations: 7.016 kB / 0.4996 GB, free: 5.211 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