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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 207.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 75.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3039, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001515/0.3055, allocations: 0.5361 MB / 0.5315 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000643/0.3062, allocations: 364 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.431e-05/0.3062, allocations: 0 / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.3062, allocations: 7.938 kB / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.518e-05/0.3063, allocations: 0 / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.3067, allocations: 111.2 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.613e-05/0.3067, allocations: 28.14 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.12e-05/0.3068, allocations: 2.438 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.428e-05/0.3068, allocations: 13.28 kB / 0.532 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.3069, allocations: 24.66 kB / 0.532 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.3069, allocations: 1.469 kB / 0.532 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.3071, allocations: 122.6 kB / 0.5321 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.145e-05/0.3071, allocations: 1.875 kB / 0.5322 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.3072, allocations: 23.38 kB / 0.5322 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.3073, allocations: 92.78 kB / 0.5323 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3074, allocations: 0 / 0.5323 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3074, allocations: 0 / 0.5323 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3074, allocations: 0 / 0.5323 GB, free: 12.64 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.0004219/0.3078, allocations: 360.8 kB / 0.5326 GB, free: 12.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3078, allocations: 11.06 kB / 0.5326 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.3079, allocations: 7.062 kB / 0.5326 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.308, allocations: 172 kB / 0.5328 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.308, allocations: 6.531 kB / 0.5328 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3081, allocations: 2.594 kB / 0.5328 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.3082, allocations: 55.08 kB / 0.5328 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3082, allocations: 4.172 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3082, allocations: 6.906 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3082, allocations: 0 / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.748e-05/0.3083, allocations: 28.11 kB / 0.5329 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.3085, allocations: 184.3 kB / 0.5331 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.3087, allocations: 54.84 kB / 0.5331 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.94e-05/0.3088, allocations: 25.22 kB / 0.5331 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/0.309, allocations: 109.6 kB / 0.5332 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.3091, allocations: 35.88 kB / 0.5333 GB, free: 11.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.3091, allocations: 4 kB / 0.5333 GB, free: 11.55 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.04339/0.3525, allocations: 2.569 MB / 0.5358 GB, free: 10.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.3525, allocations: 57.34 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.194e-05/0.3526, allocations: 104 kB / 0.5359 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.3527, allocations: 26.55 kB / 0.536 GB, free: 9.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.617e-05/0.3527, allocations: 92.97 kB / 0.5361 GB, free: 9.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.3528, allocations: 58.77 kB / 0.5361 GB, free: 9.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3529, allocations: 54.59 kB / 0.5362 GB, free: 9.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.353, allocations: 325.2 kB / 0.5365 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.3534, allocations: 178.2 kB / 0.5366 GB, free: 9.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.3538, allocations: 172.4 kB / 0.5368 GB, free: 9.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.3548, allocations: 419.1 kB / 0.5372 GB, free: 9.105 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3548, allocations: 0 / 0.5372 GB, free: 9.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001045/0.3559, allocations: 460.4 kB / 0.5376 GB, free: 8.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3559, allocations: 8.156 kB / 0.5377 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.3559, allocations: 5.312 kB / 0.5377 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.356, allocations: 3.938 kB / 0.5377 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.3564, allocations: 67.81 kB / 0.5377 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.3564, allocations: 1.594 kB / 0.5377 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3566, allocations: 21.84 kB / 0.5378 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.3567, allocations: 17.02 kB / 0.5378 GB, free: 8.832 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.0001183/0.3568, allocations: 129.7 kB / 0.5379 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.3568, allocations: 7.125 kB / 0.5379 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.3581, allocations: 0.5376 MB / 0.5384 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3581, allocations: 2.219 kB / 0.5384 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3581, allocations: 0 / 0.5384 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3581, allocations: 9.016 kB / 0.5384 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.3603, allocations: 0.8794 MB / 0.5393 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3603, allocations: 1.469 kB / 0.5393 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.3606, allocations: 74.27 kB / 0.5394 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.3606, allocations: 2.594 kB / 0.5394 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3607, allocations: 15.39 kB / 0.5394 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3607, allocations: 2.25 kB / 0.5394 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3607, allocations: 6.125 kB / 0.5394 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.3616, allocations: 466 kB / 0.5398 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.3617, allocations: 89.5 kB / 0.5399 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.3617, allocations: 2.312 kB / 0.5399 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.362, allocations: 19.33 kB / 0.5399 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.295e-05/0.362, allocations: 14.77 kB / 0.54 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.362, allocations: 21.14 kB / 0.54 GB, free: 7.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.742e-05/0.3621, allocations: 84 kB / 0.5401 GB, free: 7.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3621, allocations: 0 / 0.5401 GB, free: 7.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.363, allocations: 317.2 kB / 0.5404 GB, free: 7.145 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.001448/0.3644, allocations: 238 kB / 0.5406 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008085/0.3652, allocations: 344.2 kB / 0.5409 GB, free: 6.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3652, allocations: 0 / 0.5409 GB, free: 6.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003531/0.3656, allocations: 146.8 kB / 0.5411 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3659, allocations: 12.67 kB / 0.5411 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3672, allocations: 416.9 kB / 0.5415 GB, free: 6.492 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3674, allocations: 0.6944 MB / 0.5421 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002998/0.3677, allocations: 95.11 kB / 0.5422 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.3679, allocations: 55.39 kB / 0.5423 GB, free: 5.66 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3679, allocations: 0 / 0.5423 GB, free: 5.66 MB / 398.1 MB Notification: Performance of Templates: time 0.02252/0.3905, allocations: 17.79 MB / 0.5597 GB, free: 3.891 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches