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.001079/0.001079, allocations: 118.8 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.001203/0.001204, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2091/0.2091, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 67.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3056, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001473/0.3071, allocations: 0.5433 MB / 0.5315 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006014/0.3077, allocations: 361.2 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.665e-05/0.3077, allocations: 3.938 kB / 0.5319 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.685e-05/0.3077, allocations: 3.938 kB / 0.5319 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.23e-05/0.3078, allocations: 3.938 kB / 0.5319 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.3082, allocations: 113.5 kB / 0.532 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.462e-05/0.3082, allocations: 27.75 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.234e-05/0.3083, allocations: 3.906 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.3083, allocations: 8.594 kB / 0.532 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.3084, allocations: 20.38 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.3084, allocations: 2.062 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.3086, allocations: 119 kB / 0.5321 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.3086, allocations: 9.578 kB / 0.5322 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.406e-05/0.3086, allocations: 19.64 kB / 0.5322 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.3088, allocations: 95.31 kB / 0.5323 GB, free: 12.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3088, allocations: 4 kB / 0.5323 GB, free: 12.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3088, allocations: 1.156 kB / 0.5323 GB, free: 12.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3088, allocations: 0 / 0.5323 GB, free: 12.67 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.0003885/0.3092, allocations: 369.3 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.3093, allocations: 10.44 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.3093, allocations: 2.219 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.3094, allocations: 170.9 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.3094, allocations: 6.562 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3095, allocations: 2.625 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.3096, allocations: 59.52 kB / 0.5329 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3096, allocations: 5.219 kB / 0.5329 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3096, allocations: 3.938 kB / 0.5329 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3096, allocations: 1.062 kB / 0.5329 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.282e-05/0.3097, allocations: 23.86 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.3099, allocations: 176.6 kB / 0.5331 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.3101, allocations: 55.98 kB / 0.5331 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.589e-05/0.3101, allocations: 33.94 kB / 0.5331 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002387/0.3104, allocations: 104.5 kB / 0.5332 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.3104, allocations: 39.84 kB / 0.5333 GB, free: 11.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.3104, allocations: 0 / 0.5333 GB, free: 11.58 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.04221/0.3526, allocations: 2.573 MB / 0.5358 GB, free: 10.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.3527, allocations: 53.41 kB / 0.5358 GB, free: 10.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.393e-05/0.3528, allocations: 104.4 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.3528, allocations: 30.8 kB / 0.536 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.676e-05/0.3529, allocations: 85.02 kB / 0.5361 GB, free: 9.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.353, allocations: 66.03 kB / 0.5361 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.3531, allocations: 54.66 kB / 0.5362 GB, free: 9.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3533, allocations: 325.7 kB / 0.5365 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3537, allocations: 175 kB / 0.5367 GB, free: 9.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.3541, allocations: 171.4 kB / 0.5368 GB, free: 9.332 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3551, allocations: 423.2 kB / 0.5372 GB, free: 9.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3552, allocations: 4 kB / 0.5372 GB, free: 9.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001052/0.3562, allocations: 461.4 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3562, allocations: 4.312 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3563, allocations: 1.25 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/0.3563, allocations: 5.125 kB / 0.5377 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003681/0.3567, allocations: 70.59 kB / 0.5377 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3567, allocations: 9.406 kB / 0.5377 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.3569, allocations: 21.28 kB / 0.5378 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.3569, allocations: 13.31 kB / 0.5378 GB, free: 8.844 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.0001186/0.3571, allocations: 120.6 kB / 0.5379 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.3571, allocations: 8.828 kB / 0.5379 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.3584, allocations: 0.5448 MB / 0.5384 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3584, allocations: 2.75 kB / 0.5384 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3584, allocations: 0 / 0.5384 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3584, allocations: 3.984 kB / 0.5384 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.3605, allocations: 0.8798 MB / 0.5393 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3605, allocations: 2.531 kB / 0.5393 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.3608, allocations: 73.55 kB / 0.5394 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3608, allocations: 2.469 kB / 0.5394 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/0.3609, allocations: 19.3 kB / 0.5394 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.3609, allocations: 2.219 kB / 0.5394 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3609, allocations: 2.438 kB / 0.5394 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.3618, allocations: 465.5 kB / 0.5398 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.3619, allocations: 85.5 kB / 0.5399 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.3619, allocations: 11.42 kB / 0.5399 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.3621, allocations: 21.89 kB / 0.54 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.801e-05/0.3622, allocations: 11.39 kB / 0.54 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3622, allocations: 17.77 kB / 0.54 GB, free: 7.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.3622, allocations: 83.66 kB / 0.5401 GB, free: 7.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3623, allocations: 0 / 0.5401 GB, free: 7.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008394/0.3631, allocations: 316.7 kB / 0.5404 GB, free: 7.16 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.001408/0.3645, allocations: 245.4 kB / 0.5406 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008286/0.3654, allocations: 341.2 kB / 0.5409 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3654, allocations: 0 / 0.5409 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.3657, allocations: 150.7 kB / 0.5411 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.366, allocations: 12.39 kB / 0.5411 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.3673, allocations: 413.7 kB / 0.5415 GB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.3675, allocations: 0.6982 MB / 0.5422 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.3679, allocations: 92.11 kB / 0.5422 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.3681, allocations: 51.39 kB / 0.5423 GB, free: 5.672 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3681, allocations: 0 / 0.5423 GB, free: 5.672 MB / 398.1 MB Notification: Performance of Templates: time 0.02217/0.3902, allocations: 17.8 MB / 0.5597 GB, free: 3.898 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