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.001248/0.001248, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 212.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 227.4 MB / 247.6 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1908/0.1908, allocations: 46.09 MB / 344.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 79.88 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2873, allocations: 62.43 MB / 0.5316 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001445/0.2888, allocations: 493 kB / 0.5321 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005535/0.2894, allocations: 252 kB / 0.5323 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.029e-05/0.2894, allocations: 0 / 0.5323 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.099e-05/0.2895, allocations: 0 / 0.5323 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.043e-06/0.2895, allocations: 1.312 kB / 0.5323 GB, free: 13.1 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.0003037/0.2898, allocations: 55.66 kB / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.998e-05/0.2898, allocations: 1.625 kB / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.307e-05/0.2899, allocations: 2.156 kB / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.427e-05/0.2899, allocations: 0 / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.2899, allocations: 0 / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.2899, allocations: 10.16 kB / 0.5324 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.2901, allocations: 71.89 kB / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.071e-06/0.2901, allocations: 0 / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.224e-05/0.2901, allocations: 0 / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.2902, allocations: 55.09 kB / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2902, allocations: 0 / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.077e-05/0.2902, allocations: 0 / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2903, allocations: 3.938 kB / 0.5325 GB, free: 12.98 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.0003084/0.2906, allocations: 355.7 kB / 0.5329 GB, free: 12.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2906, allocations: 9.312 kB / 0.5329 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.2906, allocations: 4.938 kB / 0.5329 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.652e-05/0.2907, allocations: 160.4 kB / 0.533 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.2908, allocations: 384 / 0.533 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2908, allocations: 3.906 kB / 0.533 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.934e-05/0.2909, allocations: 30.25 kB / 0.5331 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.2909, allocations: 192 / 0.5331 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.2909, allocations: 3.938 kB / 0.5331 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2909, allocations: 0 / 0.5331 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.681e-05/0.2909, allocations: 7.469 kB / 0.5331 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.291, allocations: 145.7 kB / 0.5332 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.785e-05/0.2911, allocations: 22.11 kB / 0.5332 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.33e-05/0.2911, allocations: 4.859 kB / 0.5332 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.2911, allocations: 0 / 0.5332 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.2912, allocations: 63.75 kB / 0.5333 GB, free: 12.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.2912, allocations: 0 / 0.5333 GB, free: 12.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001523/0.2913, allocations: 70.61 kB / 0.5334 GB, free: 11.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.2914, allocations: 81.23 kB / 0.5335 GB, free: 11.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.174e-05/0.2914, allocations: 97.8 kB / 0.5335 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.2914, allocations: 25.7 kB / 0.5336 GB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.428e-05/0.2915, allocations: 84.12 kB / 0.5337 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.2915, allocations: 3.844 kB / 0.5337 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.2915, allocations: 9.719 kB / 0.5337 GB, free: 11.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2916, allocations: 310.8 kB / 0.534 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.2916, allocations: 7.375 kB / 0.534 GB, free: 11.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.839e-06/0.2916, allocations: 4 kB / 0.534 GB, free: 11.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.752e-05/0.2917, allocations: 63.42 kB / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2917, allocations: 0 / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.148e-05/0.2918, allocations: 65.89 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.2918, allocations: 31.2 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.2918, allocations: 0 / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2918, allocations: 3.938 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.2918, allocations: 1.375 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.2918, allocations: 4.094 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.2919, allocations: 0 / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.2919, allocations: 1.375 kB / 0.5341 GB, free: 11.13 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 7.731e-05/0.2919, allocations: 142.2 kB / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.762e-06/0.292, allocations: 0 / 0.5343 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-06/0.292, allocations: 8.438 kB / 0.5343 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.292, allocations: 0 / 0.5343 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.292, allocations: 0 / 0.5343 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.292, allocations: 1.375 kB / 0.5343 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.723e-05/0.2921, allocations: 155.1 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2921, allocations: 0 / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.924e-06/0.2921, allocations: 3.984 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2921, allocations: 1.375 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.2921, allocations: 3.938 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2921, allocations: 1.375 kB / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2921, allocations: 0 / 0.5344 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.336e-05/0.2922, allocations: 93.77 kB / 0.5345 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.2923, allocations: 85.12 kB / 0.5346 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.2923, allocations: 5.312 kB / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.2923, allocations: 1.375 kB / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.2923, allocations: 0 / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.2923, allocations: 1.375 kB / 0.5346 GB, free: 10.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.374e-05/0.2923, allocations: 75.28 kB / 0.5347 GB, free: 10.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2923, allocations: 0 / 0.5347 GB, free: 10.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002037/0.2925, allocations: 27.11 kB / 0.5347 GB, free: 10.47 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.0004858/0.293, allocations: 277.5 kB / 0.535 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.762e-05/0.2931, allocations: 60.75 kB / 0.535 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2931, allocations: 0 / 0.535 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.311e-05/0.2932, allocations: 62.69 kB / 0.5351 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000116/0.2933, allocations: 4.547 kB / 0.5351 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001687/0.2935, allocations: 109.4 kB / 0.5352 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.2937, allocations: 0.6704 MB / 0.5359 GB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.176e-05/0.2937, allocations: 8.938 kB / 0.5359 GB, free: 9.324 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2937, allocations: 128 / 0.5359 GB, free: 9.324 MB / 398.1 MB Notification: Performance of Templates: time 0.002224/0.296, allocations: 0.9631 MB / 0.5368 GB, free: 8.824 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches