Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001349, allocations: 107.5 kB / 17.03 MB, free: 5.664 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.001121/0.001121, allocations: 192.1 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.198/0.198, allocations: 43.52 MB / 314.7 MB, free: 484 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 67.19 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08537/0.08685, allocations: 57.79 MB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001555/0.08844, allocations: 0.53 MB / 442.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005485/0.089, allocations: 411.3 kB / 442.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.303e-05/0.08903, allocations: 0 / 442.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.468e-05/0.08906, allocations: 3.938 kB / 442.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.522e-05/0.08909, allocations: 0 / 442.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.08949, allocations: 147.5 kB / 443 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.652e-05/0.08954, allocations: 23.92 kB / 443.1 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.08959, allocations: 4 kB / 443.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.844e-05/0.08962, allocations: 11.94 kB / 443.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.182e-05/0.08966, allocations: 27.84 kB / 443.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.08968, allocations: 0 / 443.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.08988, allocations: 159.8 kB / 443.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.0899, allocations: 7.984 kB / 443.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2e-05/0.08993, allocations: 15.88 kB / 443.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.09009, allocations: 127.8 kB / 443.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.0901, allocations: 0 / 443.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.09011, allocations: 0 / 443.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.09012, allocations: 4 kB / 443.4 MB, free: 4.688 MB / 318.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.0003288/0.09045, allocations: 363.3 kB / 443.8 MB, free: 4.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.09049, allocations: 12.03 kB / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.09052, allocations: 4.938 kB / 443.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.451e-05/0.09059, allocations: 176.2 kB / 444 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.09061, allocations: 384 / 444 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.09063, allocations: 12.31 kB / 444 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.641e-05/0.09074, allocations: 50.25 kB / 444 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.09075, allocations: 3.938 kB / 444 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.09077, allocations: 4 kB / 444 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.09077, allocations: 0 / 444 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.908e-05/0.09084, allocations: 35.95 kB / 444.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.09096, allocations: 169.5 kB / 444.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.09114, allocations: 58.55 kB / 444.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.789e-05/0.09119, allocations: 28.86 kB / 444.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/0.09141, allocations: 105.1 kB / 444.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.105e-05/0.09143, allocations: 30.56 kB / 444.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.09144, allocations: 0 / 444.4 MB, free: 3.477 MB / 318.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.1322/0.2236, allocations: 6.39 MB / 450.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.2237, allocations: 55.41 kB / 450.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.2239, allocations: 101.9 kB / 451 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.2239, allocations: 29.64 kB / 451 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.224, allocations: 92.06 kB / 451.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.2241, allocations: 63.09 kB / 451.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.2243, allocations: 85.59 kB / 451.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.2245, allocations: 326.8 kB / 451.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/0.225, allocations: 227.8 kB / 451.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.2256, allocations: 223.8 kB / 452 MB, free: 11.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002035/0.2276, allocations: 0.5621 MB / 452.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2276, allocations: 0 / 452.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001808/0.2294, allocations: 0.6065 MB / 453.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.2295, allocations: 8 kB / 453.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2295, allocations: 0 / 453.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.2295, allocations: 0 / 453.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006811/0.2302, allocations: 112 kB / 453.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.2302, allocations: 0 / 453.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.2307, allocations: 31.95 kB / 453.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.2308, allocations: 31.94 kB / 453.4 MB, free: 10.46 MB / 334.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.0001604/0.2309, allocations: 133.7 kB / 453.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.454e-05/0.231, allocations: 7.906 kB / 453.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.2331, allocations: 0.7235 MB / 454.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2331, allocations: 0 / 454.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.2331, allocations: 8 kB / 454.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2331, allocations: 0 / 454.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.2372, allocations: 1.164 MB / 455.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.2372, allocations: 4.188 kB / 455.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005274/0.2377, allocations: 99.8 kB / 455.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2378, allocations: 0 / 455.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-05/0.2378, allocations: 31.95 kB / 455.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2378, allocations: 0 / 455.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2378, allocations: 4 kB / 455.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.2394, allocations: 0.586 MB / 456.1 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.2395, allocations: 85.02 kB / 456.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.295e-05/0.2396, allocations: 0 / 456.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004228/0.24, allocations: 35.89 kB / 456.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.886e-05/0.24, allocations: 15.92 kB / 456.3 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.262e-05/0.2401, allocations: 32.42 kB / 456.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.735e-05/0.2401, allocations: 83.28 kB / 456.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2401, allocations: 0 / 456.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001615/0.2418, allocations: 0.6483 MB / 457 MB, free: 6.672 MB / 334.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.003047/0.2448, allocations: 287 kB / 457.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001139/0.246, allocations: 463.4 kB / 457.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.246, allocations: 0 / 457.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005144/0.2465, allocations: 195.8 kB / 457.9 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.2468, allocations: 15.94 kB / 458 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.2492, allocations: 0.5258 MB / 458.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.2495, allocations: 0.6926 MB / 459.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003968/0.2499, allocations: 133.1 kB / 459.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.2502, allocations: 87.28 kB / 459.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of SimCode: time 1.934e-06/0.2502, allocations: 0 / 459.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of Templates: time 0.06836/0.3186, allocations: 57.4 MB / 0.5047 GB, free: 10.62 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches