Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007726/0.0007726, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007757/0.0007757, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8473/0.8473, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2218/0.2218, allocations: 34.25 MB / 294.9 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.133e-06/1.133e-06, allocations: 0 / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.335e-05, allocations: 2.281 kB / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.000949/0.0009623, allocations: 0.5237 MB / 442.7 MB, free: 1.168 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004453/0.001408, allocations: 342.6 kB / 443 MB, free: 0.832 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.29e-05/0.001431, allocations: 0 / 443 MB, free: 0.832 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.001445, allocations: 4 kB / 443 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.8e-05/0.001473, allocations: 7.875 kB / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.001805, allocations: 103.6 kB / 443.1 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.896e-05/0.001854, allocations: 23.92 kB / 443.2 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.846e-05/0.001893, allocations: 7.938 kB / 443.2 MB, free: 0.6875 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.786e-05/0.00193, allocations: 23.91 kB / 443.2 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.225e-05/0.001973, allocations: 11.98 kB / 443.2 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.001986, allocations: 3.938 kB / 443.2 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.002133, allocations: 111.9 kB / 443.3 MB, free: 0.5391 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.217e-05/0.002145, allocations: 8 kB / 443.3 MB, free: 0.5312 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.605e-05/0.002161, allocations: 3.938 kB / 443.3 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.002301, allocations: 119.7 kB / 443.4 MB, free: 420 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.002304, allocations: 4 kB / 443.4 MB, free: 416 kB / 410.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.002305, allocations: 0 / 443.4 MB, free: 416 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.002309, allocations: 4 kB / 443.5 MB, free: 412 kB / 410.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.0002909/0.0026, allocations: 285.9 kB / 443.7 MB, free: 92 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.002633, allocations: 16.03 kB / 443.7 MB, free: 76 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.704e-05/0.00266, allocations: 38.73 kB / 443.8 MB, free: 28 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.937e-05/0.00268, allocations: 4.938 kB / 443.8 MB, free: 24 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1455/0.1482, allocations: 105.1 kB / 443.9 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1482, allocations: 3.406 kB / 443.9 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.1482, allocations: 4.031 kB / 443.9 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1483, allocations: 56.36 kB / 444 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1483, allocations: 0.9375 kB / 444 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.1483, allocations: 0.9375 kB / 444 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1484, allocations: 3.844 kB / 444 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.398e-05/0.1484, allocations: 29.92 kB / 444 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001034/0.1485, allocations: 146.6 kB / 444.1 MB, free: 44.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.1487, allocations: 52.66 kB / 444.2 MB, free: 43.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.038e-05/0.1487, allocations: 21.55 kB / 444.2 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.1489, allocations: 33.27 kB / 444.2 MB, free: 43.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.02e-05/0.1489, allocations: 34.94 kB / 444.3 MB, free: 43.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1489, allocations: 2.344 kB / 444.3 MB, free: 43.94 MB / 410.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.01744/0.1663, allocations: 2.578 MB / 446.9 MB, free: 43.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.1663, allocations: 58.09 kB / 446.9 MB, free: 43.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.557e-05/0.1664, allocations: 102.9 kB / 447 MB, free: 43.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1664, allocations: 29.7 kB / 447 MB, free: 43.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.399e-05/0.1664, allocations: 83.08 kB / 447.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.1664, allocations: 64.34 kB / 447.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/0.1665, allocations: 53.81 kB / 447.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.521e-05/0.1665, allocations: 324.6 kB / 447.6 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.1667, allocations: 177.2 kB / 447.7 MB, free: 42.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.1669, allocations: 170.9 kB / 447.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.1674, allocations: 418.6 kB / 448.3 MB, free: 42.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1674, allocations: 6.562 kB / 448.3 MB, free: 42.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005134/0.1679, allocations: 458.8 kB / 448.8 MB, free: 42.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.168, allocations: 17.5 kB / 448.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.168, allocations: 0 / 448.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.168, allocations: 2.938 kB / 448.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1681, allocations: 66.86 kB / 448.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.1681, allocations: 0 / 448.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.1682, allocations: 21.64 kB / 448.9 MB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1683, allocations: 16.03 kB / 448.9 MB, free: 42.36 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.98e-05/0.1683, allocations: 127.5 kB / 449 MB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.1683, allocations: 10.77 kB / 449 MB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006317/0.169, allocations: 0.5346 MB / 449.5 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.169, allocations: 2.875 kB / 449.6 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.169, allocations: 0 / 449.6 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.169, allocations: 0 / 449.6 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009978/0.17, allocations: 0.8117 MB / 450.4 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.17, allocations: 6 kB / 450.4 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.1701, allocations: 69.62 kB / 450.4 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1701, allocations: 2.969 kB / 450.4 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.1701, allocations: 18.66 kB / 450.5 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.1701, allocations: 6.938 kB / 450.5 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.1701, allocations: 11.55 kB / 450.5 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004323/0.1705, allocations: 456 kB / 450.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-06/0.1706, allocations: 10.36 kB / 450.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.1706, allocations: 6.812 kB / 450.9 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.1707, allocations: 25.11 kB / 451 MB, free: 41.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.628e-05/0.1707, allocations: 21.3 kB / 451 MB, free: 41.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.1707, allocations: 17.38 kB / 451 MB, free: 41.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.116e-05/0.1707, allocations: 85.39 kB / 451.1 MB, free: 41.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1707, allocations: 2.781 kB / 451.1 MB, free: 41.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004693/0.1712, allocations: 313.3 kB / 451.4 MB, free: 41.2 MB / 410.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 (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.001342/0.1725, allocations: 1.143 MB / 452.5 MB, free: 40.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004264/0.1729, allocations: 330 kB / 452.9 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1729, allocations: 0 / 452.9 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.1731, allocations: 139.1 kB / 453 MB, free: 40.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.1733, allocations: 15.83 kB / 453 MB, free: 40.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.1742, allocations: 0.4932 MB / 453.5 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.111e-05/0.1743, allocations: 80.61 kB / 453.6 MB, free: 39.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.1744, allocations: 96.66 kB / 453.7 MB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.1745, allocations: 60.7 kB / 453.7 MB, free: 39.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1745, allocations: 0 / 453.7 MB, free: 39.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1986, allocations: 19.9 MB / 473.6 MB, free: 37.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.592/6.79, allocations: 17.83 kB / 473.7 MB, free: 37.29 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.629218080081046]