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.001639/0.001639, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002019/0.002019, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.41/1.41, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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.2277/0.2277, allocations: 46.92 MB / 360.9 MB, free: 4.371 MB / 286.1 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 0.002132/0.002132, allocations: 67.89 kB / 0.4962 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3054, allocations: 66.03 MB / 0.5606 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001765/0.3071, allocations: 0.5421 MB / 0.5612 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000742/0.3079, allocations: 370.7 kB / 0.5615 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.767e-05/0.3079, allocations: 4 kB / 0.5615 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.389e-05/0.3079, allocations: 3.938 kB / 0.5615 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.25e-05/0.3079, allocations: 3.938 kB / 0.5615 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.3084, allocations: 107.4 kB / 0.5616 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.019e-05/0.3084, allocations: 27.91 kB / 0.5617 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.89e-05/0.3085, allocations: 8 kB / 0.5617 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.98e-05/0.3085, allocations: 8 kB / 0.5617 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.064e-05/0.3086, allocations: 23.86 kB / 0.5617 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.3086, allocations: 0 / 0.5617 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.3088, allocations: 123.9 kB / 0.5618 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.397e-05/0.3088, allocations: 4 kB / 0.5618 GB, free: 3.281 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.3089, allocations: 15.88 kB / 0.5618 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.309, allocations: 97.7 kB / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.309, allocations: 0 / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.309, allocations: 0 / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.309, allocations: 3.984 kB / 0.5619 GB, free: 3.168 MB / 398.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.0004595/0.3095, allocations: 290 kB / 0.5622 GB, free: 2.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3095, allocations: 8.031 kB / 0.5622 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.876e-05/0.3096, allocations: 42.73 kB / 0.5623 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.3096, allocations: 0.9375 kB / 0.5623 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.3097, allocations: 118.4 kB / 0.5624 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3097, allocations: 8.312 kB / 0.5624 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.643e-05/0.3098, allocations: 4.375 kB / 0.5624 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.3099, allocations: 54.23 kB / 0.5624 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3099, allocations: 7.938 kB / 0.5624 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.3099, allocations: 4 kB / 0.5624 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3099, allocations: 0 / 0.5624 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.877e-05/0.31, allocations: 27.92 kB / 0.5625 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.3102, allocations: 140.7 kB / 0.5626 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.3104, allocations: 58.53 kB / 0.5627 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.3104, allocations: 21.12 kB / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/0.3107, allocations: 39.91 kB / 0.5627 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3107, allocations: 30.56 kB / 0.5628 GB, free: 2.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.3107, allocations: 0 / 0.5628 GB, free: 2.195 MB / 398.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.04049/0.3512, allocations: 2.58 MB / 0.5653 GB, free: 15.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.3512, allocations: 51.41 kB / 0.5653 GB, free: 15.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.304e-05/0.3513, allocations: 101.9 kB / 0.5654 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.3514, allocations: 25.7 kB / 0.5654 GB, free: 15.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.3514, allocations: 91.89 kB / 0.5655 GB, free: 15.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.3516, allocations: 71.33 kB / 0.5656 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.3517, allocations: 57.69 kB / 0.5657 GB, free: 15.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3518, allocations: 322.8 kB / 0.566 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.3522, allocations: 171.9 kB / 0.5661 GB, free: 14.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.3526, allocations: 179.9 kB / 0.5663 GB, free: 14.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.3536, allocations: 414.9 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.3536, allocations: 3.938 kB / 0.5667 GB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009991/0.3546, allocations: 471.4 kB / 0.5671 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3546, allocations: 4 kB / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3546, allocations: 0 / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3546, allocations: 0 / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.355, allocations: 67.94 kB / 0.5672 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.355, allocations: 4 kB / 0.5672 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.3552, allocations: 19.98 kB / 0.5672 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.3552, allocations: 15.98 kB / 0.5673 GB, free: 13.5 MB / 414.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.000131/0.3554, allocations: 129.7 kB / 0.5674 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.3554, allocations: 7.953 kB / 0.5674 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.3566, allocations: 0.5407 MB / 0.5679 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3566, allocations: 4 kB / 0.5679 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3566, allocations: 0 / 0.5679 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.3566, allocations: 0 / 0.5679 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.3588, allocations: 0.8609 MB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3588, allocations: 4 kB / 0.5688 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.359, allocations: 63.94 kB / 0.5688 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3591, allocations: 4.25 kB / 0.5688 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.3591, allocations: 12 kB / 0.5688 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.13e-05/0.3591, allocations: 12.41 kB / 0.5688 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3591, allocations: 8.172 kB / 0.5689 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008942/0.36, allocations: 462.4 kB / 0.5693 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.459e-05/0.36, allocations: 15.94 kB / 0.5693 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.36, allocations: 0 / 0.5693 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.3602, allocations: 23.92 kB / 0.5693 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.3603, allocations: 19.97 kB / 0.5694 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.3603, allocations: 19.98 kB / 0.5694 GB, free: 11.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.635e-05/0.3603, allocations: 79.28 kB / 0.5694 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3603, allocations: 0 / 0.5694 GB, free: 11.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008588/0.3612, allocations: 323.5 kB / 0.5698 GB, free: 10.8 MB / 414.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.002511/0.3637, allocations: 1.115 MB / 0.5708 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008045/0.3645, allocations: 323.7 kB / 0.5712 GB, free: 9.328 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3645, allocations: 4 kB / 0.5712 GB, free: 9.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003359/0.3649, allocations: 139.8 kB / 0.5713 GB, free: 9.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002773/0.3651, allocations: 14.92 kB / 0.5713 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3669, allocations: 0.5069 MB / 0.5718 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3672, allocations: 0.6926 MB / 0.5725 GB, free: 7.891 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.3675, allocations: 96.91 kB / 0.5726 GB, free: 7.793 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.3677, allocations: 63.39 kB / 0.5726 GB, free: 7.73 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3677, allocations: 0 / 0.5726 GB, free: 7.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.4157, allocations: 19.23 MB / 0.5914 GB, free: 4.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.89, allocations: 0 / 0.5914 GB, free: 4.645 MB / 430.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/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: 13.789250008994713]