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.001667/0.001667, allocations: 122.8 kB / 17.79 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.002041/0.002041, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3195, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001433/0.321, allocations: 0.537 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006141/0.3216, allocations: 372.9 kB / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.653e-05/0.3217, allocations: 0 / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.3217, allocations: 7.938 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.582e-05/0.3217, allocations: 0 / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.3221, allocations: 102 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.034e-05/0.3222, allocations: 32.47 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.826e-05/0.3222, allocations: 9.766 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.3223, allocations: 9.375 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.177e-05/0.3223, allocations: 21.2 kB / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.3223, allocations: 1.75 kB / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.3225, allocations: 122.6 kB / 0.5317 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.3226, allocations: 2.031 kB / 0.5317 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.3226, allocations: 21.14 kB / 0.5317 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.3228, allocations: 95.39 kB / 0.5318 GB, free: 12.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3228, allocations: 5.812 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3228, allocations: 0 / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3228, allocations: 0 / 0.5318 GB, free: 12.48 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.0004925/0.3233, allocations: 362.8 kB / 0.5321 GB, free: 12.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3234, allocations: 9.844 kB / 0.5321 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.3234, allocations: 34.75 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.3235, allocations: 12.81 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3236, allocations: 164.3 kB / 0.5323 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3236, allocations: 3.906 kB / 0.5323 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.3237, allocations: 7.938 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.3238, allocations: 52.83 kB / 0.5324 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3238, allocations: 7.438 kB / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.3238, allocations: 0 / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3238, allocations: 0 / 0.5324 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.297e-05/0.3239, allocations: 34 kB / 0.5324 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.3241, allocations: 178.7 kB / 0.5326 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.3243, allocations: 54.72 kB / 0.5327 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.364e-05/0.3244, allocations: 29.5 kB / 0.5327 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002573/0.3247, allocations: 105.8 kB / 0.5328 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.3247, allocations: 34.78 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.3247, allocations: 5.062 kB / 0.5328 GB, free: 11.35 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.04061/0.3653, allocations: 2.569 MB / 0.5353 GB, free: 9.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.3654, allocations: 58.09 kB / 0.5354 GB, free: 9.922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.352e-05/0.3655, allocations: 99.22 kB / 0.5355 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.3655, allocations: 31.11 kB / 0.5355 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.315e-05/0.3656, allocations: 85.02 kB / 0.5356 GB, free: 9.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.3657, allocations: 59.05 kB / 0.5357 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.3658, allocations: 57.38 kB / 0.5357 GB, free: 9.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3659, allocations: 329.1 kB / 0.536 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/0.3663, allocations: 171.5 kB / 0.5362 GB, free: 9.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.3667, allocations: 172.7 kB / 0.5364 GB, free: 9.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3677, allocations: 421.8 kB / 0.5368 GB, free: 8.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.3678, allocations: 5.125 kB / 0.5368 GB, free: 8.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001048/0.3688, allocations: 463.4 kB / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3688, allocations: 9.094 kB / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3689, allocations: 0 / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3689, allocations: 1.281 kB / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.3692, allocations: 70.91 kB / 0.5373 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.3693, allocations: 1.219 kB / 0.5373 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.3695, allocations: 17.72 kB / 0.5373 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.3695, allocations: 24.89 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.0001203/0.3696, allocations: 124.7 kB / 0.5374 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.3697, allocations: 8.312 kB / 0.5375 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.3709, allocations: 0.537 MB / 0.538 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.371, allocations: 2.719 kB / 0.538 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.371, allocations: 5.031 kB / 0.538 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.371, allocations: 3.984 kB / 0.538 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.3731, allocations: 0.8835 MB / 0.5389 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3732, allocations: 5.406 kB / 0.5389 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.3734, allocations: 66.11 kB / 0.5389 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3734, allocations: 2.75 kB / 0.5389 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.443e-05/0.3735, allocations: 19.17 kB / 0.5389 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.221e-06/0.3735, allocations: 2.25 kB / 0.5389 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3735, allocations: 6.312 kB / 0.5389 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009246/0.3744, allocations: 461.6 kB / 0.5394 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.3745, allocations: 89.72 kB / 0.5395 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.3745, allocations: 7.406 kB / 0.5395 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.3747, allocations: 14.55 kB / 0.5395 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.3748, allocations: 23.73 kB / 0.5395 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.3748, allocations: 17.27 kB / 0.5395 GB, free: 7.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.042e-05/0.3749, allocations: 90.12 kB / 0.5396 GB, free: 6.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3749, allocations: 1.531 kB / 0.5396 GB, free: 6.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008715/0.3757, allocations: 312.4 kB / 0.5399 GB, free: 6.934 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.002621/0.3784, allocations: 1.119 MB / 0.541 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008482/0.3792, allocations: 339.9 kB / 0.5413 GB, free: 5.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3792, allocations: 0 / 0.5413 GB, free: 5.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003499/0.3796, allocations: 147.9 kB / 0.5415 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.3799, allocations: 11.86 kB / 0.5415 GB, free: 5.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.3816, allocations: 0.4965 MB / 0.542 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.3819, allocations: 0.6989 MB / 0.5427 GB, free: 4.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002756/0.3822, allocations: 93.12 kB / 0.5427 GB, free: 4.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.3824, allocations: 55.78 kB / 0.5428 GB, free: 4.688 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3824, allocations: 0 / 0.5428 GB, free: 4.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03665/0.419, allocations: 19.11 MB / 0.5615 GB, free: 1.711 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.926, allocations: 2.656 kB / 0.5615 GB, free: 1.711 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches