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.001647/0.001646, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001972, allocations: 202 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.45/1.45, 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.2318/0.2318, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 75.81 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.388/0.3894, allocations: 62.44 MB / 0.531 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001978/0.3914, allocations: 492.1 kB / 0.5314 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006678/0.3921, allocations: 256.1 kB / 0.5317 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.3922, allocations: 0 / 0.5317 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.377e-05/0.3922, allocations: 0 / 0.5317 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.3922, allocations: 2.031 kB / 0.5317 GB, free: 13.27 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.0003296/0.3926, allocations: 50.39 kB / 0.5317 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.627e-05/0.3926, allocations: 10 kB / 0.5317 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.143e-05/0.3927, allocations: 1.125 kB / 0.5317 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.686e-05/0.3927, allocations: 9.094 kB / 0.5317 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.129e-05/0.3927, allocations: 0 / 0.5317 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-06/0.3927, allocations: 1.156 kB / 0.5317 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.3929, allocations: 59.73 kB / 0.5318 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-06/0.3929, allocations: 1.312 kB / 0.5318 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.3929, allocations: 0 / 0.5318 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.3931, allocations: 58.77 kB / 0.5319 GB, free: 13.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3931, allocations: 0 / 0.5319 GB, free: 13.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3931, allocations: 4 kB / 0.5319 GB, free: 13.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3931, allocations: 0 / 0.5319 GB, free: 13.15 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.0003121/0.3934, allocations: 357.8 kB / 0.5322 GB, free: 12.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3935, allocations: 9.188 kB / 0.5322 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.3935, allocations: 2.281 kB / 0.5322 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.91e-05/0.3936, allocations: 160.4 kB / 0.5324 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3936, allocations: 5.281 kB / 0.5324 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3937, allocations: 1.656 kB / 0.5324 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.3938, allocations: 31.88 kB / 0.5324 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.3938, allocations: 4.188 kB / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.3938, allocations: 5.312 kB / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3938, allocations: 0 / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.295e-05/0.3938, allocations: 1.281 kB / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.394, allocations: 146.9 kB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.62e-05/0.394, allocations: 21.14 kB / 0.5326 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.987e-05/0.3941, allocations: 9.906 kB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.3941, allocations: 4 kB / 0.5326 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/0.3941, allocations: 57.64 kB / 0.5326 GB, free: 12.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.382e-06/0.3941, allocations: 0 / 0.5326 GB, free: 12.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002215/0.3944, allocations: 67 kB / 0.5327 GB, free: 12.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.3944, allocations: 78.11 kB / 0.5328 GB, free: 12.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.004e-05/0.3945, allocations: 97.78 kB / 0.5329 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3945, allocations: 26.92 kB / 0.5329 GB, free: 11.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.024e-05/0.3946, allocations: 80.14 kB / 0.533 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.3946, allocations: 5.438 kB / 0.533 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.3946, allocations: 10.91 kB / 0.533 GB, free: 11.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3948, allocations: 316.1 kB / 0.5333 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.357e-05/0.3948, allocations: 0 / 0.5333 GB, free: 11.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.211e-06/0.3948, allocations: 5.281 kB / 0.5333 GB, free: 11.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6e-05/0.3949, allocations: 64.14 kB / 0.5334 GB, free: 11.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3949, allocations: 0 / 0.5334 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.959e-05/0.395, allocations: 71.03 kB / 0.5334 GB, free: 11.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.395, allocations: 32.98 kB / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.395, allocations: 0 / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/0.3951, allocations: 5.25 kB / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3951, allocations: 0 / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3951, allocations: 0 / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.035e-05/0.3951, allocations: 1.25 kB / 0.5335 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.3951, allocations: 5.188 kB / 0.5335 GB, free: 11.29 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 9.887e-05/0.3952, allocations: 144.7 kB / 0.5336 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.3952, allocations: 5.406 kB / 0.5336 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.233e-05/0.3953, allocations: 7.062 kB / 0.5336 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3953, allocations: 1.125 kB / 0.5336 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3953, allocations: 0 / 0.5336 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3953, allocations: 1.062 kB / 0.5336 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.3954, allocations: 146.8 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3954, allocations: 4 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.013e-06/0.3954, allocations: 1.156 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3954, allocations: 0 / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.3954, allocations: 5.156 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3955, allocations: 0 / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3955, allocations: 4 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001225/0.3956, allocations: 89.8 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.3956, allocations: 78.23 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3957, allocations: 5 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.3957, allocations: 1.094 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.751e-05/0.3957, allocations: 3.938 kB / 0.534 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.3957, allocations: 1.125 kB / 0.534 GB, free: 10.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.474e-05/0.3958, allocations: 79.31 kB / 0.534 GB, free: 10.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3958, allocations: 1.125 kB / 0.534 GB, free: 10.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.396, allocations: 26.77 kB / 0.5341 GB, free: 10.63 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.0008245/0.3969, allocations: 278.4 kB / 0.5343 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.3971, allocations: 60.16 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3971, allocations: 0 / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.778e-05/0.3971, allocations: 55 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.3973, allocations: 2.438 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.3976, allocations: 88.62 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.3981, allocations: 0.67 MB / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.527e-06/0.3981, allocations: 0 / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.3981, allocations: 8.594 kB / 0.5352 GB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3981, allocations: 3.938 kB / 0.5352 GB, free: 9.516 MB / 398.1 MB Notification: Performance of Templates: time 0.004383/0.4025, allocations: 0.7999 MB / 0.536 GB, free: 9.082 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