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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.252/0.252, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002424/0.002425, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3498, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00152/0.3513, allocations: 0.5319 MB / 0.5189 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000635/0.352, allocations: 374.2 kB / 0.5193 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.5e-05/0.352, allocations: 1.031 kB / 0.5193 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.034e-05/0.3521, allocations: 3.938 kB / 0.5193 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.218e-05/0.3521, allocations: 0 / 0.5193 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004925/0.3526, allocations: 100.3 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.155e-05/0.3527, allocations: 24.38 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.254e-05/0.3528, allocations: 8.078 kB / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.757e-05/0.3528, allocations: 23.55 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.635e-05/0.3529, allocations: 15.7 kB / 0.5195 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.3529, allocations: 2.469 kB / 0.5195 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.3531, allocations: 117.5 kB / 0.5196 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.705e-05/0.3532, allocations: 7.328 kB / 0.5196 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.3532, allocations: 12.98 kB / 0.5196 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.3534, allocations: 101.4 kB / 0.5197 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3534, allocations: 0.7969 kB / 0.5197 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3534, allocations: 1.094 kB / 0.5197 GB, free: 2.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3534, allocations: 0 / 0.5197 GB, free: 2.555 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.0004068/0.3539, allocations: 365.5 kB / 0.52 GB, free: 2.172 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.3539, allocations: 8.969 kB / 0.52 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.902e-05/0.3539, allocations: 38.44 kB / 0.5201 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.354, allocations: 7.031 kB / 0.5201 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.82e-05/0.3541, allocations: 163.9 kB / 0.5202 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.3541, allocations: 5.531 kB / 0.5203 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.3541, allocations: 7.641 kB / 0.5203 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.3543, allocations: 54.5 kB / 0.5203 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3543, allocations: 7.938 kB / 0.5203 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3543, allocations: 5.125 kB / 0.5203 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3543, allocations: 1.25 kB / 0.5203 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.084e-05/0.3544, allocations: 24.08 kB / 0.5203 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.3546, allocations: 178.7 kB / 0.5205 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.3548, allocations: 55.03 kB / 0.5206 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.066e-05/0.3548, allocations: 26.83 kB / 0.5206 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002529/0.3551, allocations: 108.8 kB / 0.5207 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.3551, allocations: 35.62 kB / 0.5207 GB, free: 1.473 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.3551, allocations: 0 / 0.5207 GB, free: 1.473 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.04168/0.3968, allocations: 2.575 MB / 0.5232 GB, free: 0.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.3969, allocations: 58.89 kB / 0.5233 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.408e-05/0.397, allocations: 101.8 kB / 0.5234 GB, free: 0.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.397, allocations: 31.08 kB / 0.5234 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.571e-05/0.397, allocations: 84.66 kB / 0.5235 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.3971, allocations: 60.41 kB / 0.5236 GB, free: 468 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.3972, allocations: 59 kB / 0.5236 GB, free: 440 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.147e-05/0.3973, allocations: 323.8 kB / 0.5239 GB, free: 112 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003958/0.3977, allocations: 173.8 kB / 0.5241 GB, free: 48 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004362/0.3982, allocations: 178.6 kB / 0.5243 GB, free: 15.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.3993, allocations: 412.3 kB / 0.5247 GB, free: 15.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3993, allocations: 0 / 0.5247 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001036/0.4003, allocations: 464.1 kB / 0.5251 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4003, allocations: 4.125 kB / 0.5251 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4004, allocations: 5.312 kB / 0.5251 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4004, allocations: 0 / 0.5251 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003831/0.4008, allocations: 72.19 kB / 0.5252 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.4008, allocations: 5.375 kB / 0.5252 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.401, allocations: 17.59 kB / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.401, allocations: 24.3 kB / 0.5252 GB, free: 15.53 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.0001181/0.4012, allocations: 121.8 kB / 0.5253 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.4012, allocations: 6.656 kB / 0.5254 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.4025, allocations: 0.5388 MB / 0.5259 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.4025, allocations: 3.094 kB / 0.5259 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.4025, allocations: 4 kB / 0.5259 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.4025, allocations: 0 / 0.5259 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/0.4047, allocations: 0.8802 MB / 0.5267 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4047, allocations: 1.125 kB / 0.5267 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.405, allocations: 71.03 kB / 0.5268 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.405, allocations: 5.484 kB / 0.5268 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.405, allocations: 15.38 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4051, allocations: 6.422 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.4051, allocations: 6.562 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000907/0.406, allocations: 463.1 kB / 0.5273 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.406, allocations: 85.52 kB / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.4061, allocations: 5.594 kB / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.4063, allocations: 14.86 kB / 0.5274 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.4063, allocations: 31.03 kB / 0.5274 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.4064, allocations: 18.47 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.322e-05/0.4064, allocations: 86.95 kB / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4064, allocations: 0 / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00106/0.4075, allocations: 308.6 kB / 0.5278 GB, free: 13.86 MB / 398.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.002448/0.4099, allocations: 1.123 MB / 0.5289 GB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008179/0.4108, allocations: 336.9 kB / 0.5292 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4108, allocations: 4 kB / 0.5292 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.4112, allocations: 150.6 kB / 0.5294 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.4114, allocations: 12.88 kB / 0.5294 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.4132, allocations: 0.501 MB / 0.5299 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.4135, allocations: 0.6944 MB / 0.5306 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002952/0.4138, allocations: 94.66 kB / 0.5306 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.414, allocations: 63.2 kB / 0.5307 GB, free: 11.59 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.414, allocations: 0 / 0.5307 GB, free: 11.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.4575, allocations: 19.1 MB / 0.5494 GB, free: 12.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.93, allocations: 11.06 kB / 0.5494 GB, free: 12.04 MB / 414.1 MB (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 --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) 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) Reference file matches