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.0007666/0.0007668, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009318/0.0009318, allocations: 177.1 kB / 16.92 MB, free: 6.68 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.241/1.241, allocations: 205.4 MB / 223.1 MB, free: 5.492 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.317/0.317, allocations: 43.57 MB / 315 MB, free: 9.043 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.0005232/0.0005232, allocations: 12 kB / 384.7 MB, free: 7.789 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1046, allocations: 58.86 MB / 443.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005766/0.1052, allocations: 288.2 kB / 443.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006359/0.1059, allocations: 386.2 kB / 444.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1059, allocations: 4 kB / 444.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.621e-05/0.1059, allocations: 0 / 444.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.578e-05/0.106, allocations: 3.938 kB / 444.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003077/0.1063, allocations: 79.72 kB / 444.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.488e-05/0.1064, allocations: 23.92 kB / 444.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.1064, allocations: 8 kB / 444.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.089e-05/0.1064, allocations: 7.938 kB / 444.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.237e-05/0.1065, allocations: 19.91 kB / 444.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.1065, allocations: 8 kB / 444.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.1067, allocations: 111.9 kB / 444.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.1067, allocations: 8 kB / 444.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.238e-05/0.1068, allocations: 45.55 kB / 444.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.1069, allocations: 96.03 kB / 444.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1069, allocations: 0 / 444.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1069, allocations: 0 / 444.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.107, allocations: 4 kB / 444.6 MB, free: 11.76 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.0003394/0.1073, allocations: 343.5 kB / 444.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1073, allocations: 20.02 kB / 445 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.1074, allocations: 34.75 kB / 445 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.547e-05/0.1074, allocations: 4.844 kB / 445 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.1075, allocations: 172.3 kB / 445.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1076, allocations: 384 / 445.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.1076, allocations: 12.28 kB / 445.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.1077, allocations: 50.23 kB / 445.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1077, allocations: 7.938 kB / 445.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.1077, allocations: 4 kB / 445.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1078, allocations: 0 / 445.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.391e-05/0.1078, allocations: 27.98 kB / 445.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.108, allocations: 177.6 kB / 445.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.1082, allocations: 50.56 kB / 445.5 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.527e-05/0.1083, allocations: 28.84 kB / 445.5 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/0.1085, allocations: 117.1 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.1086, allocations: 34.56 kB / 445.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1086, allocations: 288 / 445.7 MB, free: 10.5 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.04354/0.1521, allocations: 2.819 MB / 448.5 MB, free: 7.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1522, allocations: 59.34 kB / 448.5 MB, free: 7.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.938e-05/0.1523, allocations: 101.8 kB / 448.6 MB, free: 7.469 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.1523, allocations: 29.7 kB / 448.7 MB, free: 7.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.1524, allocations: 92.12 kB / 448.8 MB, free: 7.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.957e-05/0.1524, allocations: 63.02 kB / 448.8 MB, free: 7.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.1525, allocations: 21.7 kB / 448.8 MB, free: 7.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.1526, allocations: 318.8 kB / 449.2 MB, free: 6.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.153, allocations: 195.9 kB / 449.3 MB, free: 6.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.1534, allocations: 187.9 kB / 449.5 MB, free: 6.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.1544, allocations: 444 kB / 450 MB, free: 6.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1544, allocations: 0 / 450 MB, free: 6.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001023/0.1554, allocations: 497.3 kB / 450.4 MB, free: 5.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1555, allocations: 12.41 kB / 450.5 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.1555, allocations: 256 / 450.5 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1555, allocations: 0 / 450.5 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003668/0.1559, allocations: 83.94 kB / 450.5 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1559, allocations: 0 / 450.5 MB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.1561, allocations: 27.91 kB / 450.6 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.1562, allocations: 19.98 kB / 450.6 MB, free: 5.488 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.0001127/0.1563, allocations: 125.7 kB / 450.7 MB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.1563, allocations: 7.906 kB / 450.7 MB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.1576, allocations: 0.572 MB / 451.3 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1576, allocations: 0 / 451.3 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1576, allocations: 3.984 kB / 451.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1576, allocations: 0 / 451.3 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.1597, allocations: 0.9478 MB / 452.2 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.1597, allocations: 8.125 kB / 452.3 MB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.16, allocations: 83.88 kB / 452.3 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.16, allocations: 4 kB / 452.3 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.16, allocations: 8 kB / 452.3 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.447e-06/0.16, allocations: 4 kB / 452.3 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.16, allocations: 7.938 kB / 452.4 MB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009263/0.161, allocations: 495.8 kB / 452.8 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.161, allocations: 89 kB / 452.9 MB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.1611, allocations: 8 kB / 452.9 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.1613, allocations: 23.98 kB / 453 MB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.1613, allocations: 23.91 kB / 453 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.1613, allocations: 19.98 kB / 453 MB, free: 2.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.32e-05/0.1614, allocations: 87.27 kB / 453.1 MB, free: 2.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1614, allocations: 0 / 453.1 MB, free: 2.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008663/0.1623, allocations: 311.9 kB / 453.4 MB, free: 2.539 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.00238/0.1646, allocations: 1.158 MB / 454.6 MB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008118/0.1655, allocations: 371.7 kB / 454.9 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1655, allocations: 0 / 454.9 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.1658, allocations: 164.2 kB / 455.1 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.1661, allocations: 11.98 kB / 455.1 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1678, allocations: 0.5757 MB / 455.7 MB, free: 168 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1641/0.3319, allocations: 0.6906 MB / 456.4 MB, free: 44.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003861/0.3323, allocations: 95.73 kB / 456.4 MB, free: 44.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.3326, allocations: 56.2 kB / 456.5 MB, free: 44.43 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3326, allocations: 0 / 456.5 MB, free: 44.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.826/2.159, allocations: 18.55 MB / 475.1 MB, free: 42.81 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/2.159, allocations: 216.9 kB / 475.3 MB, free: 42.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/3.993, allocations: 0 / 475.3 MB, free: 42.55 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