Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 212.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 46.94 MB / 361.6 MB, free: 3.965 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 72.17 kB / 0.4969 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2753, allocations: 66.09 MB / 0.5614 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001569/0.2769, allocations: 0.5189 MB / 0.5619 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006471/0.2775, allocations: 338.8 kB / 0.5623 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.318e-05/0.2775, allocations: 0 / 0.5623 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.82e-05/0.2776, allocations: 3.938 kB / 0.5623 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.385e-05/0.2776, allocations: 0 / 0.5623 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.278, allocations: 107.4 kB / 0.5624 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.202e-05/0.278, allocations: 23.92 kB / 0.5624 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.738e-05/0.2781, allocations: 4 kB / 0.5624 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.22e-05/0.2781, allocations: 15.92 kB / 0.5624 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.965e-05/0.2781, allocations: 19.91 kB / 0.5624 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.2781, allocations: 4 kB / 0.5624 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.2783, allocations: 123.8 kB / 0.5626 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/0.2784, allocations: 7.969 kB / 0.5626 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.2784, allocations: 11.94 kB / 0.5626 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.2786, allocations: 94 kB / 0.5627 GB, free: 2.969 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2786, allocations: 0 / 0.5627 GB, free: 2.969 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2786, allocations: 0 / 0.5627 GB, free: 2.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.2786, allocations: 0 / 0.5627 GB, free: 2.969 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.0003931/0.279, allocations: 297.9 kB / 0.563 GB, free: 2.645 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.279, allocations: 12.03 kB / 0.563 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.13e-05/0.279, allocations: 192 / 0.563 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.279, allocations: 34.75 kB / 0.563 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.2791, allocations: 4.938 kB / 0.563 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.2792, allocations: 118.4 kB / 0.5631 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.992e-06/0.2792, allocations: 384 / 0.5631 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.2792, allocations: 8.375 kB / 0.5631 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.2793, allocations: 54 kB / 0.5632 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2793, allocations: 3.984 kB / 0.5632 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.2793, allocations: 0 / 0.5632 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2794, allocations: 8 kB / 0.5632 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.235e-05/0.2794, allocations: 31.91 kB / 0.5632 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.2796, allocations: 144.7 kB / 0.5634 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.2798, allocations: 54.48 kB / 0.5634 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.2798, allocations: 24.84 kB / 0.5634 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002088/0.28, allocations: 27.97 kB / 0.5635 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.2801, allocations: 42.72 kB / 0.5635 GB, free: 1.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.2801, allocations: 0 / 0.5635 GB, free: 1.984 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.04085/0.3209, allocations: 2.575 MB / 0.566 GB, free: 15.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.321, allocations: 55.41 kB / 0.5661 GB, free: 15.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.478e-05/0.3211, allocations: 97.86 kB / 0.5662 GB, free: 15.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.3211, allocations: 26.17 kB / 0.5662 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.3212, allocations: 95.88 kB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.3213, allocations: 63.42 kB / 0.5663 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3214, allocations: 57.69 kB / 0.5664 GB, free: 14.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3215, allocations: 322.8 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.3219, allocations: 179.8 kB / 0.5669 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.3223, allocations: 175.9 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.3233, allocations: 416.6 kB / 0.5674 GB, free: 13.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3233, allocations: 4 kB / 0.5674 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001083/0.3244, allocations: 463.9 kB / 0.5679 GB, free: 13.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3244, allocations: 6.812 kB / 0.5679 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3244, allocations: 0 / 0.5679 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.3245, allocations: 4 kB / 0.5679 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.3248, allocations: 67.94 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3248, allocations: 4 kB / 0.568 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.325, allocations: 15.98 kB / 0.568 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.3251, allocations: 15.98 kB / 0.568 GB, free: 13.3 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.000133/0.3252, allocations: 125.7 kB / 0.5681 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.3252, allocations: 7.953 kB / 0.5681 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.3266, allocations: 0.5449 MB / 0.5686 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3266, allocations: 0 / 0.5686 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3266, allocations: 0 / 0.5686 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3266, allocations: 4 kB / 0.5687 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.3288, allocations: 0.8259 MB / 0.5695 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3288, allocations: 4 kB / 0.5695 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003388/0.3291, allocations: 63.94 kB / 0.5695 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3291, allocations: 4 kB / 0.5695 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.3292, allocations: 15.98 kB / 0.5695 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3292, allocations: 4 kB / 0.5695 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3292, allocations: 7.938 kB / 0.5696 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009083/0.3301, allocations: 463 kB / 0.57 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.3301, allocations: 7.953 kB / 0.57 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.3301, allocations: 8 kB / 0.57 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.3303, allocations: 15.97 kB / 0.57 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.149e-05/0.3304, allocations: 19.92 kB / 0.57 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.564e-05/0.3304, allocations: 19.98 kB / 0.5701 GB, free: 11.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.637e-05/0.3305, allocations: 87.22 kB / 0.5701 GB, free: 10.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3305, allocations: 0 / 0.5701 GB, free: 10.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000907/0.3314, allocations: 319.6 kB / 0.5705 GB, free: 10.65 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.002551/0.3339, allocations: 1.114 MB / 0.5715 GB, free: 9.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007935/0.3347, allocations: 323.7 kB / 0.5718 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3347, allocations: 0 / 0.5718 GB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.3351, allocations: 144 kB / 0.572 GB, free: 9.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3353, allocations: 14.73 kB / 0.572 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.337, allocations: 0.5033 MB / 0.5725 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.979e-05/0.3371, allocations: 79.56 kB / 0.5726 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.3374, allocations: 92.97 kB / 0.5727 GB, free: 8.266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.3376, allocations: 59.41 kB / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3376, allocations: 0 / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04137/0.379, allocations: 19.42 MB / 0.5917 GB, free: 4.867 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.22, allocations: 0 / 0.5917 GB, free: 4.867 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 14.084999748971313]