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.001269/0.001269, 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 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.001433/0.001433, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2209/0.2209, allocations: 44.94 MB / 359.6 MB, free: 6.059 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",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.002337/0.002337, allocations: 63.89 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3097, allocations: 65.47 MB / 0.5577 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001917/0.3116, allocations: 0.5225 MB / 0.5582 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007966/0.3124, allocations: 345.4 kB / 0.5586 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.388e-05/0.3124, allocations: 0 / 0.5586 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.3124, allocations: 0 / 0.5586 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.523e-05/0.3124, allocations: 5.188 kB / 0.5586 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.313, allocations: 113.4 kB / 0.5587 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.661e-05/0.313, allocations: 19.97 kB / 0.5587 GB, free: 6.578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.158e-05/0.3131, allocations: 4 kB / 0.5587 GB, free: 6.574 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.688e-05/0.3131, allocations: 15.88 kB / 0.5587 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.777e-05/0.3131, allocations: 23.92 kB / 0.5587 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.3132, allocations: 0 / 0.5587 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.3134, allocations: 123.9 kB / 0.5588 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.3134, allocations: 7.938 kB / 0.5589 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.3134, allocations: 11.92 kB / 0.5589 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.3137, allocations: 97.7 kB / 0.559 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3137, allocations: 0 / 0.559 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3137, allocations: 0 / 0.559 GB, free: 6.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3137, allocations: 4 kB / 0.559 GB, free: 6.297 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.0004366/0.3141, allocations: 286 kB / 0.5592 GB, free: 5.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3141, allocations: 12.03 kB / 0.5593 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.95e-05/0.3142, allocations: 8.172 kB / 0.5593 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.3142, allocations: 34.75 kB / 0.5593 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.039e-05/0.3142, allocations: 12.88 kB / 0.5593 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.3143, allocations: 114.4 kB / 0.5594 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.3143, allocations: 384 / 0.5594 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.3144, allocations: 4.375 kB / 0.5594 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.3145, allocations: 61.92 kB / 0.5595 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3145, allocations: 7.938 kB / 0.5595 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3145, allocations: 4 kB / 0.5595 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.3145, allocations: 0 / 0.5595 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.461e-05/0.3146, allocations: 27.98 kB / 0.5595 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001804/0.3148, allocations: 136.8 kB / 0.5596 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.315, allocations: 58.58 kB / 0.5597 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.399e-05/0.3151, allocations: 16.86 kB / 0.5597 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002431/0.3153, allocations: 31.95 kB / 0.5597 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3153, allocations: 38.5 kB / 0.5598 GB, free: 5.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.3153, allocations: 0 / 0.5598 GB, free: 5.324 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.04289/0.3582, allocations: 2.565 MB / 0.5623 GB, free: 2.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.3583, allocations: 55.41 kB / 0.5623 GB, free: 2.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.076e-05/0.3584, allocations: 101.8 kB / 0.5624 GB, free: 2.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.3584, allocations: 33.7 kB / 0.5625 GB, free: 2.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.3585, allocations: 83.89 kB / 0.5626 GB, free: 2.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.682e-05/0.3586, allocations: 67.44 kB / 0.5626 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.3587, allocations: 57.62 kB / 0.5627 GB, free: 2.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.3589, allocations: 330.7 kB / 0.563 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000414/0.3593, allocations: 171.9 kB / 0.5631 GB, free: 1.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/0.3597, allocations: 175.9 kB / 0.5633 GB, free: 1.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.3608, allocations: 414.5 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3608, allocations: 0 / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001167/0.362, allocations: 468.7 kB / 0.5642 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.362, allocations: 8 kB / 0.5642 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.362, allocations: 256 / 0.5642 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.362, allocations: 0 / 0.5642 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004012/0.3624, allocations: 79.88 kB / 0.5642 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3624, allocations: 0 / 0.5642 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.3626, allocations: 19.97 kB / 0.5643 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.3627, allocations: 19.98 kB / 0.5643 GB, free: 0.6289 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.0001443/0.3628, allocations: 121.7 kB / 0.5644 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.3629, allocations: 7.953 kB / 0.5644 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.3642, allocations: 0.5446 MB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3642, allocations: 4 kB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3643, allocations: 0 / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.3643, allocations: 3.984 kB / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.3666, allocations: 0.8103 MB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.3666, allocations: 4 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.3669, allocations: 72.08 kB / 0.5658 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.3669, allocations: 4.469 kB / 0.5658 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.3669, allocations: 15.98 kB / 0.5658 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3669, allocations: 0 / 0.5658 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3669, allocations: 4 kB / 0.5658 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009936/0.3679, allocations: 468.2 kB / 0.5663 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.094e-05/0.3679, allocations: 19.88 kB / 0.5663 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.368, allocations: 4 kB / 0.5663 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.3682, allocations: 19.98 kB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.3682, allocations: 15.91 kB / 0.5663 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.3683, allocations: 23.94 kB / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.875e-05/0.3683, allocations: 87.2 kB / 0.5664 GB, free: 14.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3683, allocations: 4 kB / 0.5664 GB, free: 14.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009181/0.3692, allocations: 319.6 kB / 0.5668 GB, free: 13.97 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.00273/0.372, allocations: 1.11 MB / 0.5678 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008711/0.3728, allocations: 323.7 kB / 0.5681 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3728, allocations: 0 / 0.5681 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003799/0.3732, allocations: 147.8 kB / 0.5683 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.3735, allocations: 12 kB / 0.5683 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.3756, allocations: 0.5032 MB / 0.5688 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.635e-05/0.3756, allocations: 79.56 kB / 0.5689 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003086/0.376, allocations: 97.16 kB / 0.569 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.3762, allocations: 59.39 kB / 0.569 GB, free: 11.53 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3762, allocations: 0 / 0.569 GB, free: 11.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0443/0.4205, allocations: 19.41 MB / 0.588 GB, free: 8.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.86, allocations: 14.53 kB / 0.588 GB, free: 8.258 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.989823794923723]