Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001344/0.001344, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001506/0.001506, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.444/1.444, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2161/0.2161, allocations: 44.91 MB / 358.8 MB, free: 6.375 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 73.92 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3242, allocations: 65.46 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001771/0.326, allocations: 0.5372 MB / 0.5575 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.3268, allocations: 371.5 kB / 0.5579 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.798e-05/0.3268, allocations: 0 / 0.5579 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.344e-05/0.3268, allocations: 5.125 kB / 0.5579 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.477e-05/0.3269, allocations: 3.938 kB / 0.5579 GB, free: 6.832 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.3273, allocations: 113 kB / 0.558 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.303e-05/0.3273, allocations: 23.98 kB / 0.558 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.3274, allocations: 0 / 0.558 GB, free: 6.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.023e-05/0.3274, allocations: 19.91 kB / 0.5581 GB, free: 6.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.992e-05/0.3275, allocations: 19.92 kB / 0.5581 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.3275, allocations: 3.938 kB / 0.5581 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/0.3277, allocations: 119.9 kB / 0.5582 GB, free: 6.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.894e-05/0.3278, allocations: 11.94 kB / 0.5582 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.123e-05/0.3278, allocations: 11.92 kB / 0.5582 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001933/0.328, allocations: 97.7 kB / 0.5583 GB, free: 6.457 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.328, allocations: 0 / 0.5583 GB, free: 6.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.328, allocations: 0 / 0.5583 GB, free: 6.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.328, allocations: 0 / 0.5583 GB, free: 6.457 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.0004473/0.3285, allocations: 297.9 kB / 0.5586 GB, free: 6.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3285, allocations: 12.03 kB / 0.5586 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.3285, allocations: 34.75 kB / 0.5586 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.3286, allocations: 8.938 kB / 0.5586 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.3287, allocations: 110.4 kB / 0.5587 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.3287, allocations: 4.375 kB / 0.5588 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.3287, allocations: 8.375 kB / 0.5588 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.3289, allocations: 62.11 kB / 0.5588 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3289, allocations: 3.938 kB / 0.5588 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.3289, allocations: 0 / 0.5588 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.3289, allocations: 4 kB / 0.5588 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.141e-05/0.329, allocations: 23.98 kB / 0.5588 GB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001857/0.3291, allocations: 140.7 kB / 0.559 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.3293, allocations: 54.59 kB / 0.559 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.083e-05/0.3294, allocations: 24.84 kB / 0.5591 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002243/0.3296, allocations: 35.95 kB / 0.5591 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3296, allocations: 30.56 kB / 0.5591 GB, free: 5.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.3297, allocations: 0 / 0.5591 GB, free: 5.484 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.04173/0.3714, allocations: 2.576 MB / 0.5616 GB, free: 2.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3714, allocations: 55.41 kB / 0.5617 GB, free: 2.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.3715, allocations: 101.8 kB / 0.5618 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.698e-05/0.3716, allocations: 25.7 kB / 0.5618 GB, free: 2.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.047e-05/0.3716, allocations: 91.89 kB / 0.5619 GB, free: 2.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.977e-05/0.3717, allocations: 63.44 kB / 0.562 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.3718, allocations: 57.69 kB / 0.562 GB, free: 2.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.372, allocations: 322.8 kB / 0.5623 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003935/0.3724, allocations: 175.9 kB / 0.5625 GB, free: 1.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.3727, allocations: 179.8 kB / 0.5627 GB, free: 1.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.3738, allocations: 414 kB / 0.5631 GB, free: 1.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.3738, allocations: 0 / 0.5631 GB, free: 1.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001039/0.3748, allocations: 468.6 kB / 0.5635 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3748, allocations: 4 kB / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3748, allocations: 0 / 0.5635 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3748, allocations: 4 kB / 0.5635 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/0.3752, allocations: 71.88 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3752, allocations: 4 kB / 0.5636 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.3754, allocations: 23.97 kB / 0.5636 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.3755, allocations: 15.98 kB / 0.5636 GB, free: 0.7891 MB / 398.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.0001275/0.3756, allocations: 125.7 kB / 0.5637 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.3756, allocations: 7.953 kB / 0.5638 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3769, allocations: 0.5407 MB / 0.5643 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3769, allocations: 4 kB / 0.5643 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3769, allocations: 0 / 0.5643 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3769, allocations: 3.984 kB / 0.5643 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.3791, allocations: 0.861 MB / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3791, allocations: 0 / 0.5651 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.3794, allocations: 71.88 kB / 0.5652 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.3794, allocations: 3.938 kB / 0.5652 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.3794, allocations: 19.98 kB / 0.5652 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.3794, allocations: 4 kB / 0.5652 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3795, allocations: 0 / 0.5652 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.3804, allocations: 468.5 kB / 0.5657 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.346e-05/0.3804, allocations: 8.422 kB / 0.5657 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.3804, allocations: 4 kB / 0.5657 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3807, allocations: 23.95 kB / 0.5657 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.3807, allocations: 15.98 kB / 0.5657 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.3807, allocations: 19.98 kB / 0.5657 GB, free: 14.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.955e-05/0.3808, allocations: 87.22 kB / 0.5658 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3808, allocations: 0 / 0.5658 GB, free: 14.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008484/0.3816, allocations: 331.5 kB / 0.5661 GB, free: 14.09 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.002525/0.3841, allocations: 1.11 MB / 0.5672 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008765/0.385, allocations: 315.7 kB / 0.5675 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.385, allocations: 8 kB / 0.5675 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.3854, allocations: 135.8 kB / 0.5677 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.3857, allocations: 23.92 kB / 0.5677 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.3874, allocations: 0.5069 MB / 0.5682 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.3878, allocations: 0.6926 MB / 0.5689 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.388, allocations: 92.97 kB / 0.5689 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.3883, allocations: 59.41 kB / 0.569 GB, free: 11.02 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3883, allocations: 0 / 0.569 GB, free: 11.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04779/0.436, allocations: 19.24 MB / 0.5878 GB, free: 7.926 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.58, allocations: 6.281 kB / 0.5878 GB, free: 7.922 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.490748724201694]