Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_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.00102/0.00102, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001095/0.001095, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1992/0.1992, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 64.38 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09925, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001731/0.101, allocations: 0.5307 MB / 469.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006272/0.1017, allocations: 365.2 kB / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.1017, allocations: 0 / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.1017, allocations: 3.938 kB / 470.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.638e-05/0.1018, allocations: 7.938 kB / 470.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1022, allocations: 107.6 kB / 470.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.969e-05/0.1022, allocations: 23.98 kB / 470.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.1023, allocations: 4 kB / 470.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.918e-05/0.1023, allocations: 7.938 kB / 470.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.239e-05/0.1023, allocations: 15.92 kB / 470.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.1024, allocations: 7.984 kB / 470.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000209/0.1026, allocations: 119.9 kB / 470.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.1026, allocations: 15.92 kB / 470.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.303e-05/0.1026, allocations: 11.94 kB / 470.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.1028, allocations: 99.95 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1028, allocations: 0 / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1028, allocations: 0 / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1028, allocations: 0 / 470.7 MB, free: 12.96 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.000383/0.1032, allocations: 367.4 kB / 471 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.1033, allocations: 8.031 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.808e-05/0.1033, allocations: 34.75 kB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.765e-05/0.1033, allocations: 8.844 kB / 471.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.1035, allocations: 180.3 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.1035, allocations: 384 / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.1035, allocations: 4.375 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.1036, allocations: 54.19 kB / 471.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1036, allocations: 3.938 kB / 471.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.1037, allocations: 7.938 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.1037, allocations: 4 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.375e-05/0.1037, allocations: 27.97 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001585/0.1039, allocations: 165.6 kB / 471.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.1041, allocations: 66.58 kB / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.1042, allocations: 24.86 kB / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002584/0.1044, allocations: 109 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.1045, allocations: 30.56 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.1045, allocations: 0 / 471.7 MB, free: 11.7 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.04367/0.1481, allocations: 2.577 MB / 474.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.1482, allocations: 51.41 kB / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/0.1483, allocations: 105.8 kB / 474.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.1484, allocations: 29.7 kB / 474.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.7e-05/0.1484, allocations: 80.14 kB / 474.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.281e-05/0.1485, allocations: 63.09 kB / 474.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1486, allocations: 57.67 kB / 474.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1488, allocations: 322.8 kB / 475 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/0.1492, allocations: 179.9 kB / 475.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.1496, allocations: 179.8 kB / 475.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.1506, allocations: 419.2 kB / 475.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1506, allocations: 0 / 475.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001071/0.1517, allocations: 457.3 kB / 476.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1517, allocations: 8 kB / 476.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1517, allocations: 0 / 476.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1518, allocations: 0 / 476.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.1522, allocations: 71.88 kB / 476.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1522, allocations: 0 / 476.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.1524, allocations: 23.97 kB / 476.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.1525, allocations: 15.98 kB / 476.3 MB, free: 7.004 MB / 350.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.0001156/0.1526, allocations: 125.8 kB / 476.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.31e-05/0.1526, allocations: 7.906 kB / 476.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.1539, allocations: 0.5432 MB / 477 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.154, allocations: 4 kB / 477 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.154, allocations: 3.938 kB / 477 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.154, allocations: 4 kB / 477 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.1561, allocations: 0.8894 MB / 477.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.1561, allocations: 4 kB / 477.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.1564, allocations: 67.88 kB / 478 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.1565, allocations: 4 kB / 478 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.804e-05/0.1565, allocations: 16 kB / 478 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.1565, allocations: 7.984 kB / 478 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1565, allocations: 0 / 478 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009344/0.1574, allocations: 468.3 kB / 478.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.435e-05/0.1575, allocations: 89.02 kB / 478.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.1575, allocations: 0 / 478.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.1578, allocations: 23.97 kB / 478.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.1578, allocations: 15.98 kB / 478.6 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.1578, allocations: 12 kB / 478.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.948e-05/0.1579, allocations: 87.27 kB / 478.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1579, allocations: 0 / 478.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008542/0.1587, allocations: 319.9 kB / 479 MB, free: 4.203 MB / 350.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.002449/0.1612, allocations: 1.114 MB / 480.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008311/0.162, allocations: 347.6 kB / 480.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1621, allocations: 0 / 480.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.1624, allocations: 152.1 kB / 480.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.1627, allocations: 8 kB / 480.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1644, allocations: 0.5 MB / 481.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.1647, allocations: 0.7004 MB / 481.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003819/0.1651, allocations: 92.88 kB / 481.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.1653, allocations: 59.39 kB / 482 MB, free: 1.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1653, allocations: 0 / 482 MB, free: 1.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04388/0.2092, allocations: 18.91 MB / 0.4891 GB, free: 14.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.667, allocations: 13.08 kB / 0.4891 GB, free: 14.3 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches