Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 103.1 kB / 15.98 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.00103, allocations: 192.7 kB / 16.91 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.1 MB / 222.8 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3038/0.3038, allocations: 43.5 MB / 313.6 MB, free: 8.488 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 63.89 kB / 382.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 57.78 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001798/0.1036, allocations: 0.6125 MB / 440.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007187/0.1043, allocations: 374 kB / 441.1 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.671e-05/0.1044, allocations: 4 kB / 441.1 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.759e-05/0.1044, allocations: 7.938 kB / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.356e-05/0.1044, allocations: 0 / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005122/0.105, allocations: 88.06 kB / 441.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.711e-05/0.105, allocations: 23.98 kB / 441.2 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.825e-05/0.1051, allocations: 3.938 kB / 441.2 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.446e-05/0.1051, allocations: 15.92 kB / 441.2 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.1052, allocations: 19.91 kB / 441.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.1052, allocations: 0 / 441.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.1054, allocations: 119.9 kB / 441.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.1055, allocations: 11.92 kB / 441.4 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.1055, allocations: 15.92 kB / 441.4 MB, free: 13.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.1057, allocations: 87.81 kB / 441.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1057, allocations: 7.938 kB / 441.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1057, allocations: 0 / 441.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1057, allocations: 0 / 441.5 MB, free: 13.25 MB / 382.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.0004947/0.1062, allocations: 363.4 kB / 441.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.1063, allocations: 19.77 kB / 441.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.1063, allocations: 42.75 kB / 441.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.1064, allocations: 0.9375 kB / 441.9 MB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.1065, allocations: 172.3 kB / 442.1 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1065, allocations: 384 / 442.1 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.1065, allocations: 4.375 kB / 442.1 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.1067, allocations: 50.25 kB / 442.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1067, allocations: 11.86 kB / 442.1 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1067, allocations: 8 kB / 442.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1067, allocations: 0 / 442.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.415e-05/0.1068, allocations: 23.98 kB / 442.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002506/0.1071, allocations: 169.7 kB / 442.3 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.1073, allocations: 62.58 kB / 442.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.233e-05/0.1074, allocations: 28.84 kB / 442.4 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002497/0.1076, allocations: 101.1 kB / 442.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.1077, allocations: 34.56 kB / 442.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1077, allocations: 0 / 442.5 MB, free: 11.99 MB / 382.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.04211/0.1498, allocations: 2.583 MB / 445.1 MB, free: 9.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.1499, allocations: 59.39 kB / 445.2 MB, free: 9.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.04e-05/0.1499, allocations: 97.86 kB / 445.3 MB, free: 9.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.15, allocations: 29.7 kB / 445.3 MB, free: 9.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.299e-05/0.15, allocations: 84.14 kB / 445.4 MB, free: 9.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.498e-05/0.1501, allocations: 63.08 kB / 445.5 MB, free: 9.012 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1503, allocations: 61.69 kB / 445.5 MB, free: 8.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1504, allocations: 322.8 kB / 445.8 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003658/0.1507, allocations: 171.9 kB / 446 MB, free: 8.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.1511, allocations: 175.9 kB / 446.2 MB, free: 8.281 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009899/0.1521, allocations: 417.2 kB / 446.6 MB, free: 7.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1521, allocations: 0 / 446.6 MB, free: 7.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001004/0.1531, allocations: 468.8 kB / 447 MB, free: 7.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.1531, allocations: 4 kB / 447 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1532, allocations: 0 / 447 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1532, allocations: 0 / 447 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.1536, allocations: 67.94 kB / 447.1 MB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.1536, allocations: 7.938 kB / 447.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.1538, allocations: 23.97 kB / 447.1 MB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.1538, allocations: 15.98 kB / 447.1 MB, free: 7.293 MB / 382.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.0001246/0.154, allocations: 121.8 kB / 447.3 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.154, allocations: 7.906 kB / 447.3 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.1553, allocations: 0.5368 MB / 447.8 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1553, allocations: 8 kB / 447.8 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1553, allocations: 0 / 447.8 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1553, allocations: 0 / 447.8 MB, free: 6.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.1573, allocations: 0.8891 MB / 448.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1574, allocations: 480 / 448.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.1576, allocations: 71.88 kB / 448.8 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1577, allocations: 0 / 448.8 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.1577, allocations: 20.23 kB / 448.8 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1577, allocations: 8 kB / 448.8 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1577, allocations: 3.938 kB / 448.8 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008795/0.1586, allocations: 476.6 kB / 449.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.1587, allocations: 85.02 kB / 449.4 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.1587, allocations: 8 kB / 449.4 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1589, allocations: 15.97 kB / 449.4 MB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.65e-05/0.1589, allocations: 19.98 kB / 449.4 MB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-05/0.159, allocations: 15.98 kB / 449.4 MB, free: 4.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.28e-05/0.159, allocations: 79.28 kB / 449.5 MB, free: 4.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.159, allocations: 0 / 449.5 MB, free: 4.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008197/0.1599, allocations: 319.9 kB / 449.8 MB, free: 4.484 MB / 382.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.002297/0.1622, allocations: 1.131 MB / 450.9 MB, free: 3.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007741/0.1629, allocations: 335.7 kB / 451.3 MB, free: 2.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.163, allocations: 4 kB / 451.3 MB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003467/0.1633, allocations: 147.8 kB / 451.4 MB, free: 2.836 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.1636, allocations: 12 kB / 451.4 MB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.1653, allocations: 0.5199 MB / 451.9 MB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1655, allocations: 0.6965 MB / 452.6 MB, free: 1.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003603/0.1659, allocations: 92.83 kB / 452.7 MB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.1661, allocations: 59.39 kB / 452.8 MB, free: 1.371 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1661, allocations: 0 / 452.8 MB, free: 1.371 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.192/0.3581, allocations: 18.83 MB / 471.6 MB, free: 47.06 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.3583, allocations: 218.7 kB / 471.8 MB, free: 46.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.165, allocations: 0 / 471.8 MB, free: 46.81 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches