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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00159/0.001591, allocations: 116.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.11 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 75.88 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3024, allocations: 62.43 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001609/0.304, allocations: 0.5422 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006666/0.3047, allocations: 365 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.022e-05/0.3047, allocations: 0 / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.3048, allocations: 3.938 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.235e-05/0.3048, allocations: 5.094 kB / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.3052, allocations: 106.7 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.262e-05/0.3053, allocations: 28.12 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.089e-05/0.3053, allocations: 5.609 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.3054, allocations: 9.312 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.77e-05/0.3054, allocations: 21.05 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.3054, allocations: 2.094 kB / 0.5316 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.3056, allocations: 122.7 kB / 0.5317 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.3057, allocations: 1.406 kB / 0.5317 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.652e-05/0.3057, allocations: 20.56 kB / 0.5317 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.3059, allocations: 97.7 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3059, allocations: 0 / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.3059, allocations: 5.734 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.3059, allocations: 0 / 0.5318 GB, free: 12.5 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.0004254/0.3063, allocations: 369 kB / 0.5321 GB, free: 12.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3064, allocations: 10.25 kB / 0.5321 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.3064, allocations: 36.23 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.3065, allocations: 2.375 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.3066, allocations: 175 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.3066, allocations: 5.719 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.3067, allocations: 3.062 kB / 0.5324 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.3068, allocations: 58.83 kB / 0.5324 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3068, allocations: 5.531 kB / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3068, allocations: 0 / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3068, allocations: 2.156 kB / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.255e-05/0.3069, allocations: 27.06 kB / 0.5324 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001686/0.3071, allocations: 173.9 kB / 0.5326 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.3073, allocations: 58.94 kB / 0.5327 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.696e-05/0.3074, allocations: 28.72 kB / 0.5327 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002446/0.3076, allocations: 109.4 kB / 0.5328 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.3077, allocations: 37 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.3077, allocations: 0 / 0.5328 GB, free: 11.36 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.04172/0.3494, allocations: 2.576 MB / 0.5354 GB, free: 9.992 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.3495, allocations: 53.56 kB / 0.5354 GB, free: 9.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.3496, allocations: 99.73 kB / 0.5355 GB, free: 9.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.3496, allocations: 26.86 kB / 0.5355 GB, free: 9.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.3497, allocations: 92.88 kB / 0.5356 GB, free: 9.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.3497, allocations: 67.17 kB / 0.5357 GB, free: 9.645 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.3499, allocations: 54.03 kB / 0.5357 GB, free: 9.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.35, allocations: 325.7 kB / 0.536 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003847/0.3504, allocations: 179.3 kB / 0.5362 GB, free: 9.195 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.3508, allocations: 168.6 kB / 0.5364 GB, free: 9.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.3518, allocations: 426.6 kB / 0.5368 GB, free: 8.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3518, allocations: 0 / 0.5368 GB, free: 8.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001051/0.3529, allocations: 464.1 kB / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3529, allocations: 13.03 kB / 0.5372 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3529, allocations: 0.8438 kB / 0.5372 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.353, allocations: 0.875 kB / 0.5372 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.3533, allocations: 71.44 kB / 0.5373 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.3534, allocations: 1.25 kB / 0.5373 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.3536, allocations: 18.02 kB / 0.5373 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.3536, allocations: 16.58 kB / 0.5373 GB, free: 8.625 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.0001585/0.3538, allocations: 129.2 kB / 0.5375 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/0.3538, allocations: 7.359 kB / 0.5375 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.3551, allocations: 0.5458 MB / 0.538 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3552, allocations: 1.781 kB / 0.538 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3552, allocations: 0 / 0.538 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3552, allocations: 5.719 kB / 0.538 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3573, allocations: 0.8746 MB / 0.5389 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3573, allocations: 6.359 kB / 0.5389 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.3576, allocations: 77.77 kB / 0.5389 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.3576, allocations: 2.812 kB / 0.5389 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.3577, allocations: 14.98 kB / 0.539 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3577, allocations: 2.156 kB / 0.539 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3577, allocations: 2.312 kB / 0.539 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009104/0.3586, allocations: 466.2 kB / 0.5394 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.3587, allocations: 85.53 kB / 0.5395 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.3587, allocations: 10.17 kB / 0.5395 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.3589, allocations: 18.86 kB / 0.5395 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.359, allocations: 11.42 kB / 0.5395 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.359, allocations: 17.14 kB / 0.5395 GB, free: 7.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.92e-05/0.359, allocations: 83.22 kB / 0.5396 GB, free: 6.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3591, allocations: 5.656 kB / 0.5396 GB, free: 6.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008552/0.3599, allocations: 319.4 kB / 0.5399 GB, free: 6.93 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.002401/0.3623, allocations: 1.12 MB / 0.541 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000819/0.3632, allocations: 339.3 kB / 0.5414 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3632, allocations: 1.094 kB / 0.5414 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.3635, allocations: 150.7 kB / 0.5415 GB, free: 5.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.3638, allocations: 16.5 kB / 0.5415 GB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.3655, allocations: 0.5053 MB / 0.542 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.3658, allocations: 0.6941 MB / 0.5427 GB, free: 4.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002802/0.3661, allocations: 94.11 kB / 0.5428 GB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.3663, allocations: 62.11 kB / 0.5428 GB, free: 4.664 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3663, allocations: 3.938 kB / 0.5428 GB, free: 4.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.4033, allocations: 18.96 MB / 0.5614 GB, free: 1.816 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/7.894, allocations: 0 / 0.5614 GB, free: 1.816 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv","/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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches