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.001345/0.001345, allocations: 118.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 211.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2333/0.2333, allocations: 46.12 MB / 345 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003294/0.003294, allocations: 75.88 kB / 482 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4153, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001496/0.4168, allocations: 0.4883 MB / 0.5322 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006372/0.4174, allocations: 248.6 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.268e-05/0.4174, allocations: 0 / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.599e-05/0.4175, allocations: 0 / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.4175, allocations: 2.969 kB / 0.5324 GB, free: 13.04 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.0003129/0.4178, allocations: 56.11 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.732e-05/0.4178, allocations: 7.984 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.751e-05/0.4179, allocations: 3.938 kB / 0.5325 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.427e-05/0.4179, allocations: 7.562 kB / 0.5325 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.224e-05/0.4179, allocations: 3.984 kB / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.4179, allocations: 0 / 0.5325 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.418, allocations: 62.3 kB / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.4181, allocations: 0 / 0.5325 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.4181, allocations: 4 kB / 0.5325 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.4182, allocations: 51.75 kB / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4182, allocations: 0 / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4182, allocations: 0 / 0.5326 GB, free: 12.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.4182, allocations: 5.312 kB / 0.5326 GB, free: 12.92 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.0003995/0.4186, allocations: 362 kB / 0.5329 GB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4186, allocations: 9.625 kB / 0.533 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.4187, allocations: 0.9375 kB / 0.533 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.4188, allocations: 165.8 kB / 0.5331 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.4188, allocations: 384 / 0.5331 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.4188, allocations: 1.75 kB / 0.5331 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.721e-05/0.4189, allocations: 27.64 kB / 0.5331 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.4189, allocations: 5.5 kB / 0.5332 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.4189, allocations: 3.938 kB / 0.5332 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.4189, allocations: 4 kB / 0.5332 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.685e-05/0.4189, allocations: 1.375 kB / 0.5332 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.4191, allocations: 151 kB / 0.5333 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.638e-05/0.4191, allocations: 17.33 kB / 0.5333 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.475e-05/0.4192, allocations: 4.859 kB / 0.5333 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-06/0.4192, allocations: 1.375 kB / 0.5333 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.4192, allocations: 57.64 kB / 0.5334 GB, free: 11.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.4192, allocations: 4 kB / 0.5334 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001856/0.4194, allocations: 78.12 kB / 0.5335 GB, free: 11.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.4195, allocations: 78.48 kB / 0.5335 GB, free: 11.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.927e-05/0.4195, allocations: 93.81 kB / 0.5336 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.4195, allocations: 25.7 kB / 0.5336 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.4196, allocations: 81.52 kB / 0.5337 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.4196, allocations: 0 / 0.5337 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.4196, allocations: 12.47 kB / 0.5337 GB, free: 11.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4197, allocations: 315 kB / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.4198, allocations: 9.312 kB / 0.534 GB, free: 11.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.4198, allocations: 1.375 kB / 0.534 GB, free: 11.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.148e-05/0.4198, allocations: 66.94 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.4198, allocations: 0 / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.867e-05/0.4199, allocations: 58.28 kB / 0.5342 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.4199, allocations: 31.2 kB / 0.5342 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.4199, allocations: 9.406 kB / 0.5342 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.4199, allocations: 7.938 kB / 0.5342 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.4199, allocations: 0 / 0.5342 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.42, allocations: 5.359 kB / 0.5342 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.42, allocations: 0 / 0.5342 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.42, allocations: 1.375 kB / 0.5342 GB, free: 11.06 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 0.0001084/0.4201, allocations: 142.2 kB / 0.5344 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.194e-06/0.4201, allocations: 0 / 0.5344 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.828e-06/0.4201, allocations: 7.062 kB / 0.5344 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.4201, allocations: 5.375 kB / 0.5344 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4201, allocations: 0 / 0.5344 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4201, allocations: 0 / 0.5344 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.4202, allocations: 148.4 kB / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.4202, allocations: 0 / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.4202, allocations: 0 / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.4202, allocations: 0 / 0.5345 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.4202, allocations: 9.25 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.4202, allocations: 0 / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4202, allocations: 1.375 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.4204, allocations: 93.83 kB / 0.5346 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.4204, allocations: 77.11 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.4204, allocations: 5.312 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-06/0.4204, allocations: 0 / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.4204, allocations: 1.375 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.4204, allocations: 1.312 kB / 0.5347 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.048e-05/0.4205, allocations: 75.28 kB / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4205, allocations: 0 / 0.5348 GB, free: 10.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.4207, allocations: 30.61 kB / 0.5348 GB, free: 10.41 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.0006795/0.4214, allocations: 269.3 kB / 0.535 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.4215, allocations: 64.44 kB / 0.5351 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4215, allocations: 1.719 kB / 0.5351 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.887e-05/0.4215, allocations: 57.77 kB / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.4217, allocations: 9.094 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002015/0.4219, allocations: 80.44 kB / 0.5353 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.4222, allocations: 0.6747 MB / 0.5359 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.212e-06/0.4222, allocations: 0 / 0.5359 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.075e-05/0.4222, allocations: 8.25 kB / 0.5359 GB, free: 9.289 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4222, allocations: 1.281 kB / 0.5359 GB, free: 9.289 MB / 398.1 MB Notification: Performance of Templates: time 0.00355/0.4258, allocations: 0.8025 MB / 0.5367 GB, free: 8.848 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 -s gbode -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