Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009605/0.0009635, allocations: 174.8 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 222.9 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006945/0.0006946, allocations: 86.39 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2748/0.2748, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 15.98 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08506/0.08545, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005335/0.08601, allocations: 268.4 kB / 491.2 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005246/0.08656, allocations: 341.9 kB / 491.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.195e-05/0.08659, allocations: 0 / 491.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.669e-06/0.08661, allocations: 0 / 491.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.201e-05/0.08665, allocations: 7.938 kB / 491.5 MB, free: 9.961 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.08696, allocations: 75.73 kB / 491.6 MB, free: 9.887 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.011e-05/0.08702, allocations: 19.98 kB / 491.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.08706, allocations: 7.984 kB / 491.6 MB, free: 9.859 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.171e-05/0.08709, allocations: 11.94 kB / 491.6 MB, free: 9.848 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.943e-05/0.08714, allocations: 19.91 kB / 491.7 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.08716, allocations: 7.938 kB / 491.7 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.08735, allocations: 107.9 kB / 491.8 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.08738, allocations: 11.98 kB / 491.8 MB, free: 9.703 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.38e-05/0.08742, allocations: 45.56 kB / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.08753, allocations: 55.91 kB / 491.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.08754, allocations: 0 / 491.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.08755, allocations: 0 / 491.9 MB, free: 9.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.08756, allocations: 0 / 491.9 MB, free: 9.598 MB / 378.7 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.0003181/0.08788, allocations: 355.8 kB / 492.2 MB, free: 9.199 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.08792, allocations: 8.031 kB / 492.2 MB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.08797, allocations: 38.75 kB / 492.3 MB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.073e-05/0.08799, allocations: 4.844 kB / 492.3 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.213e-05/0.08809, allocations: 176.3 kB / 492.5 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.08811, allocations: 384 / 492.5 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.08813, allocations: 16.22 kB / 492.5 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.08824, allocations: 50.25 kB / 492.5 MB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.08826, allocations: 3.938 kB / 492.5 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.08827, allocations: 0 / 492.5 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.08828, allocations: 4 kB / 492.5 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.169e-05/0.08835, allocations: 31.95 kB / 492.6 MB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.08854, allocations: 165.6 kB / 492.7 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.08874, allocations: 58.55 kB / 492.8 MB, free: 8.543 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.941e-05/0.08879, allocations: 24.86 kB / 492.8 MB, free: 8.516 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002435/0.08904, allocations: 121.1 kB / 492.9 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.08906, allocations: 34.5 kB / 493 MB, free: 8.336 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.08907, allocations: 0 / 493 MB, free: 8.336 MB / 378.7 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.03932/0.1284, allocations: 2.829 MB / 495.8 MB, free: 5.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.1284, allocations: 55.41 kB / 495.8 MB, free: 5.406 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.304e-05/0.1285, allocations: 101.8 kB / 495.9 MB, free: 5.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.1285, allocations: 37.64 kB / 496 MB, free: 5.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.778e-05/0.1286, allocations: 80.14 kB / 496.1 MB, free: 5.172 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.1286, allocations: 63.02 kB / 496.1 MB, free: 5.109 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.1287, allocations: 4 kB / 496.1 MB, free: 5.105 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.1287, allocations: 326.8 kB / 496.4 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.1291, allocations: 187.9 kB / 496.6 MB, free: 4.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.1295, allocations: 187.9 kB / 496.8 MB, free: 4.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009377/0.1304, allocations: 448.7 kB / 497.2 MB, free: 3.969 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.1304, allocations: 0 / 497.2 MB, free: 3.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009452/0.1314, allocations: 492.8 kB / 497.7 MB, free: 3.484 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.1314, allocations: 8 kB / 497.7 MB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1314, allocations: 0 / 497.7 MB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.915e-06/0.1314, allocations: 3.938 kB / 497.7 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.1318, allocations: 83.88 kB / 497.8 MB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1318, allocations: 0 / 497.8 MB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.132, allocations: 28.44 kB / 497.8 MB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.132, allocations: 15.98 kB / 497.9 MB, free: 3.348 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.509e-05/0.1321, allocations: 125.7 kB / 498 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.1322, allocations: 7.906 kB / 498 MB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.1334, allocations: 0.5681 MB / 498.6 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1334, allocations: 3.938 kB / 498.6 MB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1334, allocations: 0 / 498.6 MB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1334, allocations: 3.984 kB / 498.6 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.1353, allocations: 0.9554 MB / 499.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1353, allocations: 256 / 499.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.1356, allocations: 84.08 kB / 499.6 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1356, allocations: 0 / 499.6 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.1357, allocations: 19.98 kB / 499.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1357, allocations: 7.984 kB / 499.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1357, allocations: 0 / 499.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/0.1365, allocations: 496.2 kB / 0.4884 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.214e-05/0.1366, allocations: 89 kB / 0.4885 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.1366, allocations: 8 kB / 0.4885 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1368, allocations: 23.98 kB / 0.4885 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.1369, allocations: 19.92 kB / 0.4885 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.1369, allocations: 19.98 kB / 0.4885 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.916e-05/0.1369, allocations: 83.28 kB / 0.4886 GB, free: 0.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1369, allocations: 0 / 0.4886 GB, free: 0.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000689/0.1376, allocations: 315.9 kB / 0.4889 GB, free: 408 kB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1461/0.2837, allocations: 1.146 MB / 0.49 GB, free: 41.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007807/0.2845, allocations: 366.6 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2845, allocations: 3.312 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.2849, allocations: 170.6 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.2852, allocations: 10.41 kB / 0.4906 GB, free: 41.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.2867, allocations: 0.5885 MB / 0.4911 GB, free: 41.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.922e-05/0.2868, allocations: 0.6942 MB / 0.4918 GB, free: 40.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.287, allocations: 60.5 kB / 0.4919 GB, free: 40.98 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.287, allocations: 0 / 0.4919 GB, free: 40.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.308/3.595, allocations: 6.159 MB / 0.4979 GB, free: 40.64 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches