Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009903/0.0009906, allocations: 180.9 kB / 8.006 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008542/0.0008542, allocations: 90.56 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1955/0.1955, allocations: 43.5 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.022e-05/2.018e-05, allocations: 0 / 418.2 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1232, allocations: 58.86 MB / 477.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.5908, allocations: 83.98 MB / 0.5479 GB, free: 8.992 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.5911, allocations: 67.66 kB / 0.548 GB, free: 8.988 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003485/0.5946, allocations: 1.66 MB / 0.5496 GB, free: 8.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5946, allocations: 0.8438 kB / 0.5496 GB, free: 8.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.5946, allocations: 2.312 kB / 0.5496 GB, free: 8.625 MB / 362.7 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.0002135/0.5949, allocations: 342.5 kB / 0.5499 GB, free: 8.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.5949, allocations: 11.69 kB / 0.55 GB, free: 8.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.5949, allocations: 2.859 kB / 0.55 GB, free: 8.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.648e-05/0.595, allocations: 167 kB / 0.5501 GB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.595, allocations: 4 kB / 0.5501 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.5951, allocations: 0 / 0.5501 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.857e-05/0.5951, allocations: 6.531 kB / 0.5501 GB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.828e-05/0.5952, allocations: 36.11 kB / 0.5502 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.5952, allocations: 0 / 0.5502 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.5952, allocations: 0 / 0.5502 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.5952, allocations: 0 / 0.5502 GB, free: 8.008 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.029e-05/0.5953, allocations: 131.1 kB / 0.5503 GB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.264e-05/0.5953, allocations: 18.58 kB / 0.5503 GB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.5954, allocations: 11.67 kB / 0.5503 GB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.5954, allocations: 0 / 0.5503 GB, free: 7.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.5954, allocations: 63.02 kB / 0.5504 GB, free: 7.738 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.5954, allocations: 0 / 0.5504 GB, free: 7.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001662/0.5956, allocations: 29.48 kB / 0.5504 GB, free: 7.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.5956, allocations: 77.11 kB / 0.5505 GB, free: 7.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.454e-05/0.5956, allocations: 91.72 kB / 0.5506 GB, free: 7.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.5957, allocations: 29.73 kB / 0.5506 GB, free: 7.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.501e-05/0.5957, allocations: 80.14 kB / 0.5507 GB, free: 7.406 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.5957, allocations: 0 / 0.5507 GB, free: 7.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.5957, allocations: 0 / 0.5507 GB, free: 7.406 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.75e-05/0.5958, allocations: 313.7 kB / 0.551 GB, free: 7.094 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.5958, allocations: 0 / 0.551 GB, free: 7.094 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-06/0.5958, allocations: 7.156 kB / 0.551 GB, free: 7.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.481e-05/0.5958, allocations: 0 / 0.551 GB, free: 7.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5958, allocations: 4.062 kB / 0.551 GB, free: 7.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.349e-05/0.5959, allocations: 46.95 kB / 0.551 GB, free: 7.051 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.5959, allocations: 29.39 kB / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5959, allocations: 0 / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.596, allocations: 0 / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.475e-06/0.596, allocations: 3.625 kB / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.596, allocations: 0 / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.159e-05/0.596, allocations: 0 / 0.5511 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.596, allocations: 1.25 kB / 0.5511 GB, free: 7.02 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.842e-05/0.5961, allocations: 137.2 kB / 0.5512 GB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.165e-06/0.5961, allocations: 3.953 kB / 0.5512 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.5961, allocations: 3.75 kB / 0.5512 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.5961, allocations: 0 / 0.5512 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5961, allocations: 0 / 0.5512 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.5961, allocations: 0 / 0.5512 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.367e-05/0.5962, allocations: 128.4 kB / 0.5513 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5962, allocations: 0 / 0.5513 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.5962, allocations: 0 / 0.5513 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.5962, allocations: 0 / 0.5513 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.5962, allocations: 4.859 kB / 0.5513 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5962, allocations: 11.94 kB / 0.5513 GB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5962, allocations: 6.797 kB / 0.5513 GB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.011e-05/0.5963, allocations: 63.52 kB / 0.5514 GB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.578e-05/0.5963, allocations: 79.83 kB / 0.5515 GB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.5964, allocations: 0 / 0.5515 GB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.5964, allocations: 0 / 0.5515 GB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/0.5964, allocations: 15.23 kB / 0.5515 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.5964, allocations: 4.031 kB / 0.5515 GB, free: 6.523 MB / 362.7 MB Notification: Performance of sorting global known variables: time 1.637e-05/0.5964, allocations: 79.22 kB / 0.5516 GB, free: 6.445 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5964, allocations: 0 / 0.5516 GB, free: 6.445 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002513/0.5967, allocations: 25.94 kB / 0.5516 GB, free: 6.438 MB / 362.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004829/0.5972, allocations: 262.4 kB / 0.5518 GB, free: 6.266 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.121e-05/0.5973, allocations: 59.22 kB / 0.5519 GB, free: 6.199 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5973, allocations: 0 / 0.5519 GB, free: 6.199 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.764e-05/0.5973, allocations: 57.36 kB / 0.552 GB, free: 6.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.128e-05/0.5974, allocations: 0 / 0.552 GB, free: 6.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001447/0.5976, allocations: 52.39 kB / 0.552 GB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.5977, allocations: 0.6766 MB / 0.5527 GB, free: 5.375 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.43e-06/0.5977, allocations: 0 / 0.5527 GB, free: 5.375 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.446e-06/0.5977, allocations: 7.438 kB / 0.5527 GB, free: 5.367 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5977, allocations: 0 / 0.5527 GB, free: 5.367 MB / 362.7 MB Notification: Performance of Templates: time 0.002763/0.6005, allocations: 0.7621 MB / 0.5534 GB, free: 4.715 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches