Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, 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.001525/0.001525, allocations: 197.2 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.475/1.475, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 75.88 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3414, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001492/0.3429, allocations: 483.2 kB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006024/0.3436, allocations: 259.2 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.172e-05/0.3436, allocations: 1.344 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.3436, allocations: 0 / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.279e-06/0.3436, allocations: 7.938 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.3439, allocations: 52.03 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.548e-05/0.344, allocations: 1.219 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.94e-05/0.3441, allocations: 1.094 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.646e-05/0.3441, allocations: 1.031 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.334e-05/0.3441, allocations: 5 kB / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.295e-06/0.3441, allocations: 0 / 0.5317 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.3443, allocations: 72.05 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.492e-06/0.3443, allocations: 1.156 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.3443, allocations: 1.219 kB / 0.5318 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.3444, allocations: 48.48 kB / 0.5319 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3445, allocations: 5.531 kB / 0.5319 GB, free: 12.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3445, allocations: 3.938 kB / 0.5319 GB, free: 12.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3445, allocations: 3.984 kB / 0.5319 GB, free: 12.94 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003073/0.3448, allocations: 349.8 kB / 0.5322 GB, free: 12.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.3448, allocations: 9.562 kB / 0.5322 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.3449, allocations: 2.938 kB / 0.5322 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.822e-05/0.345, allocations: 164.4 kB / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.345, allocations: 384 / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-06/0.345, allocations: 2.219 kB / 0.5324 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.005e-05/0.3451, allocations: 40.11 kB / 0.5324 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.3451, allocations: 192 / 0.5324 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.3451, allocations: 3.938 kB / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3451, allocations: 0 / 0.5324 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.012e-05/0.3451, allocations: 13.8 kB / 0.5324 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000109/0.3453, allocations: 143.8 kB / 0.5326 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.463e-05/0.3453, allocations: 16.55 kB / 0.5326 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.3453, allocations: 8.859 kB / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.184e-06/0.3453, allocations: 5.938 kB / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3454, allocations: 56.27 kB / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3454, allocations: 0 / 0.5327 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001604/0.3455, allocations: 70.86 kB / 0.5327 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.3456, allocations: 78.89 kB / 0.5328 GB, free: 11.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.552e-05/0.3456, allocations: 89.86 kB / 0.5329 GB, free: 11.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.3457, allocations: 29.7 kB / 0.5329 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.5e-05/0.3457, allocations: 84.27 kB / 0.533 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.3457, allocations: 1.844 kB / 0.533 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.315e-05/0.3458, allocations: 11.38 kB / 0.533 GB, free: 11.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3459, allocations: 320.3 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.346, allocations: 0 / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.242e-06/0.346, allocations: 1.781 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.2e-05/0.346, allocations: 58.52 kB / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.346, allocations: 1.125 kB / 0.5334 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.478e-05/0.3461, allocations: 69.66 kB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.3461, allocations: 35.97 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3461, allocations: 4 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3462, allocations: 3.938 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3462, allocations: 1.469 kB / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.3462, allocations: 0 / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.3462, allocations: 0 / 0.5335 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.3462, allocations: 1.531 kB / 0.5335 GB, free: 11.09 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.736e-05/0.3463, allocations: 141 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.674e-06/0.3463, allocations: 1.469 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-06/0.3463, allocations: 7.062 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.3463, allocations: 1.656 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3463, allocations: 3.984 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.3463, allocations: 0 / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.668e-05/0.3464, allocations: 147.1 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3464, allocations: 0 / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3465, allocations: 1.594 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.3465, allocations: 0 / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.3465, allocations: 5.438 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3465, allocations: 4 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3465, allocations: 0 / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.3466, allocations: 94.77 kB / 0.5339 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.392e-05/0.3467, allocations: 77.11 kB / 0.5339 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.3467, allocations: 9.438 kB / 0.5339 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-06/0.3467, allocations: 3.984 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.3467, allocations: 1.438 kB / 0.534 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.3467, allocations: 4.031 kB / 0.534 GB, free: 10.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.472e-05/0.3468, allocations: 75.28 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3468, allocations: 0 / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002392/0.347, allocations: 23.78 kB / 0.5341 GB, free: 10.43 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000497/0.3475, allocations: 270.1 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.067e-05/0.3476, allocations: 61.36 kB / 0.5344 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3476, allocations: 0 / 0.5344 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.063e-05/0.3477, allocations: 62.38 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.3478, allocations: 5.906 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001613/0.348, allocations: 80.3 kB / 0.5345 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.3482, allocations: 0.6745 MB / 0.5352 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.492e-06/0.3482, allocations: 0 / 0.5352 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.093e-05/0.3482, allocations: 9.281 kB / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3482, allocations: 0 / 0.5352 GB, free: 9.316 MB / 398.1 MB Notification: Performance of Templates: time 0.003087/0.3513, allocations: 0.7992 MB / 0.536 GB, free: 8.879 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches