Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001792/0.001792, allocations: 118.9 kB / 17.83 MB, free: 5.203 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.002255/0.002255, allocations: 210.3 kB / 20.8 MB, free: 2.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 207.6 MB / 231.2 MB, free: 4.141 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3354/0.3354, allocations: 44.23 MB / 327.3 MB, free: 7.07 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002252/0.002252, allocations: 64.52 kB / 462.9 MB, free: 1.039 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.252, allocations: 61 MB / 0.5116 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001464/0.2535, allocations: 0.5511 MB / 0.5122 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005748/0.2541, allocations: 378.2 kB / 0.5125 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.971e-05/0.2541, allocations: 3.938 kB / 0.5125 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.2541, allocations: 7.938 kB / 0.5125 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.374e-05/0.2541, allocations: 1.312 kB / 0.5125 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.2545, allocations: 102.8 kB / 0.5126 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.408e-05/0.2545, allocations: 27.59 kB / 0.5127 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.296e-05/0.2546, allocations: 6.734 kB / 0.5127 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.02e-05/0.2546, allocations: 13.66 kB / 0.5127 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.987e-05/0.2547, allocations: 16.36 kB / 0.5127 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.2547, allocations: 2.906 kB / 0.5127 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.2549, allocations: 122.2 kB / 0.5128 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.364e-05/0.2549, allocations: 5.844 kB / 0.5128 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.2549, allocations: 15.95 kB / 0.5128 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.255, allocations: 101.3 kB / 0.5129 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.255, allocations: 0 / 0.5129 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.255, allocations: 0 / 0.5129 GB, free: 12.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2551, allocations: 1.062 kB / 0.5129 GB, free: 12.3 MB / 382.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.0003301/0.2554, allocations: 361.2 kB / 0.5133 GB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2554, allocations: 18 kB / 0.5133 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.693e-05/0.2554, allocations: 5.344 kB / 0.5133 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.831e-05/0.2555, allocations: 35.88 kB / 0.5133 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.2555, allocations: 3.188 kB / 0.5133 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.555e-05/0.2556, allocations: 170.6 kB / 0.5135 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.2556, allocations: 10.41 kB / 0.5135 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.2556, allocations: 2.75 kB / 0.5135 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.2557, allocations: 59.11 kB / 0.5136 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.2557, allocations: 1.094 kB / 0.5136 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.2557, allocations: 0 / 0.5136 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2557, allocations: 1.25 kB / 0.5136 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.858e-05/0.2558, allocations: 28.3 kB / 0.5136 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.2559, allocations: 175.6 kB / 0.5138 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.2561, allocations: 46.44 kB / 0.5138 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.151e-05/0.2561, allocations: 24.03 kB / 0.5138 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002241/0.2564, allocations: 108.8 kB / 0.5139 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.174e-05/0.2564, allocations: 39.56 kB / 0.514 GB, free: 11.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.173e-06/0.2564, allocations: 3.938 kB / 0.514 GB, free: 11.16 MB / 382.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.0427/0.2991, allocations: 2.573 MB / 0.5165 GB, free: 9.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.2991, allocations: 54.16 kB / 0.5165 GB, free: 9.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.873e-05/0.2992, allocations: 107.3 kB / 0.5166 GB, free: 9.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.2992, allocations: 27.08 kB / 0.5167 GB, free: 9.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.125e-05/0.2992, allocations: 85.52 kB / 0.5168 GB, free: 9.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.2993, allocations: 66.3 kB / 0.5168 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.2994, allocations: 58.56 kB / 0.5169 GB, free: 9.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.184e-05/0.2994, allocations: 324.1 kB / 0.5172 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.2998, allocations: 175.8 kB / 0.5174 GB, free: 8.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.3001, allocations: 179.6 kB / 0.5175 GB, free: 8.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/0.301, allocations: 412.7 kB / 0.5179 GB, free: 8.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.301, allocations: 0 / 0.5179 GB, free: 8.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009218/0.302, allocations: 468 kB / 0.5184 GB, free: 7.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.302, allocations: 4 kB / 0.5184 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.302, allocations: 3.938 kB / 0.5184 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.302, allocations: 4 kB / 0.5184 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.3023, allocations: 67.88 kB / 0.5184 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.3024, allocations: 4 kB / 0.5184 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.3026, allocations: 23.97 kB / 0.5185 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.3026, allocations: 15.98 kB / 0.5185 GB, free: 7.844 MB / 382.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 9.588e-05/0.3027, allocations: 125.7 kB / 0.5186 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/0.3027, allocations: 7.953 kB / 0.5186 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.3038, allocations: 0.5369 MB / 0.5191 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.3038, allocations: 0 / 0.5191 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3038, allocations: 0 / 0.5191 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3038, allocations: 4.234 kB / 0.5191 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.3057, allocations: 0.8894 MB / 0.52 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3057, allocations: 4 kB / 0.52 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.306, allocations: 67.89 kB / 0.5201 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.306, allocations: 7.984 kB / 0.5201 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.306, allocations: 15.98 kB / 0.5201 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.306, allocations: 4 kB / 0.5201 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.306, allocations: 0 / 0.5201 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/0.3068, allocations: 468.5 kB / 0.5205 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.3068, allocations: 89.05 kB / 0.5206 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.3069, allocations: 4 kB / 0.5206 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.3071, allocations: 15.98 kB / 0.5206 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.3071, allocations: 19.92 kB / 0.5207 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.3071, allocations: 23.98 kB / 0.5207 GB, free: 5.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.601e-05/0.3071, allocations: 83.22 kB / 0.5208 GB, free: 5.348 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3071, allocations: 0 / 0.5208 GB, free: 5.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008274/0.308, allocations: 319.6 kB / 0.5211 GB, free: 5.035 MB / 382.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.00222/0.3102, allocations: 1.126 MB / 0.5222 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007437/0.3109, allocations: 323.7 kB / 0.5225 GB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3109, allocations: 0 / 0.5225 GB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003233/0.3113, allocations: 147.8 kB / 0.5226 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.3115, allocations: 15.98 kB / 0.5226 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.3131, allocations: 0.4921 MB / 0.5231 GB, free: 2.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.3132, allocations: 0.6965 MB / 0.5238 GB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.3135, allocations: 96.81 kB / 0.5239 GB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.3137, allocations: 59.41 kB / 0.5239 GB, free: 1.953 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3137, allocations: 0 / 0.5239 GB, free: 1.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.3521, allocations: 19.02 MB / 0.5425 GB, free: 14.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.623/8.975, allocations: 4.812 kB / 0.5425 GB, free: 14.85 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.934545408992562]