Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.614/1.614, allocations: 222.9 MB / 241.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 103 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4442/0.4442, allocations: 44.13 MB / 386.1 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001482, allocations: 55.92 kB / 457.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3317, allocations: 60.8 MB / 0.5064 GB, free: 38.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001456/0.3332, allocations: 0.5488 MB / 0.5069 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.3349, allocations: 1.279 MB / 0.5082 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.208e-06/0.3349, allocations: 0 / 0.5082 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.3349, allocations: 4 kB / 0.5082 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.479e-05/0.335, allocations: 10.72 kB / 0.5082 GB, free: 37.11 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007746/0.3358, allocations: 188.8 kB / 0.5084 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.332e-05/0.3358, allocations: 2.219 kB / 0.5084 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.514e-05/0.3359, allocations: 4.344 kB / 0.5084 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.357e-05/0.3359, allocations: 14.12 kB / 0.5084 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.712e-05/0.3359, allocations: 8.109 kB / 0.5084 GB, free: 37 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.336, allocations: 1.125 kB / 0.5084 GB, free: 37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.3389, allocations: 0.6118 MB / 0.509 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-06/0.3389, allocations: 0 / 0.509 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.917e-05/0.3389, allocations: 6.656 kB / 0.509 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.3391, allocations: 178.3 kB / 0.5092 GB, free: 36.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3392, allocations: 0 / 0.5092 GB, free: 36.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3392, allocations: 0 / 0.5092 GB, free: 36.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.3392, allocations: 4 kB / 0.5092 GB, free: 36.77 MB / 378.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.0002762/0.3395, allocations: 383.9 kB / 0.5095 GB, free: 36.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.3395, allocations: 11.28 kB / 0.5095 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.623e-05/0.3395, allocations: 4.406 kB / 0.5095 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.836e-05/0.3396, allocations: 160.4 kB / 0.5097 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-06/0.3396, allocations: 384 / 0.5097 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.3396, allocations: 7.203 kB / 0.5097 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.897e-05/0.3397, allocations: 36.67 kB / 0.5097 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3397, allocations: 4 kB / 0.5097 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-06/0.3397, allocations: 0 / 0.5097 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-06/0.3397, allocations: 0 / 0.5097 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.415e-05/0.3397, allocations: 6.391 kB / 0.5098 GB, free: 36.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.112e-05/0.3398, allocations: 145.7 kB / 0.5099 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.743e-05/0.3399, allocations: 17.39 kB / 0.5099 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.036e-05/0.3399, allocations: 4.859 kB / 0.5099 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-06/0.3399, allocations: 6.312 kB / 0.5099 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.3399, allocations: 68.14 kB / 0.51 GB, free: 35.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.3399, allocations: 0 / 0.51 GB, free: 35.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.34, allocations: 63.94 kB / 0.51 GB, free: 35.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.976e-05/0.3401, allocations: 83.5 kB / 0.5101 GB, free: 35.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.658e-05/0.3401, allocations: 93.05 kB / 0.5102 GB, free: 35.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.743e-06/0.3401, allocations: 25.7 kB / 0.5102 GB, free: 35.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.34e-05/0.3402, allocations: 84.33 kB / 0.5103 GB, free: 35.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.119e-05/0.3402, allocations: 7.906 kB / 0.5103 GB, free: 35.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.3402, allocations: 16.66 kB / 0.5103 GB, free: 35.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.002e-05/0.3402, allocations: 314.3 kB / 0.5106 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.3403, allocations: 2.875 kB / 0.5106 GB, free: 35.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.121e-06/0.3403, allocations: 3.938 kB / 0.5106 GB, free: 35.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.473e-05/0.3403, allocations: 59.17 kB / 0.5107 GB, free: 35.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3403, allocations: 0 / 0.5107 GB, free: 35.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.459e-05/0.3404, allocations: 75.38 kB / 0.5108 GB, free: 34.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3404, allocations: 31.42 kB / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.3404, allocations: 0 / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.3404, allocations: 0 / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-06/0.3404, allocations: 2.969 kB / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.3404, allocations: 3.938 kB / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.371e-05/0.3404, allocations: 0 / 0.5108 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-06/0.3405, allocations: 4 kB / 0.5108 GB, free: 34.91 MB / 378.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 () * 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 4.073e-05/0.3405, allocations: 134.4 kB / 0.5109 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.3405, allocations: 11.44 kB / 0.511 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.556e-06/0.3405, allocations: 9.562 kB / 0.511 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.3405, allocations: 3.938 kB / 0.511 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3405, allocations: 0 / 0.511 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3405, allocations: 0 / 0.511 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.62e-05/0.3406, allocations: 151.9 kB / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3406, allocations: 0 / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.3406, allocations: 3.938 kB / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.3406, allocations: 0 / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.3406, allocations: 2.938 kB / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.3406, allocations: 0 / 0.5111 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3406, allocations: 7.984 kB / 0.5111 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.3408, allocations: 0.6365 MB / 0.5117 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.337e-05/0.3408, allocations: 79.98 kB / 0.5118 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.3409, allocations: 0 / 0.5118 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.566e-06/0.3409, allocations: 0 / 0.5118 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.3409, allocations: 4.031 kB / 0.5118 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.3409, allocations: 2.906 kB / 0.5118 GB, free: 33.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.696e-05/0.3409, allocations: 82.66 kB / 0.5119 GB, free: 33.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3409, allocations: 7.344 kB / 0.5119 GB, free: 33.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003767/0.3413, allocations: 64.91 kB / 0.512 GB, free: 33.67 MB / 378.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) * 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.000534/0.3418, allocations: 348.2 kB / 0.5123 GB, free: 33.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.228e-05/0.3419, allocations: 64.75 kB / 0.5124 GB, free: 33.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3419, allocations: 0 / 0.5124 GB, free: 33.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.875e-05/0.342, allocations: 60.84 kB / 0.5124 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.3421, allocations: 0 / 0.5124 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001755/0.3423, allocations: 191.1 kB / 0.5126 GB, free: 33.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.9e-05/0.3423, allocations: 0.6752 MB / 0.5133 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.468e-06/0.3424, allocations: 0 / 0.5133 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-06/0.3424, allocations: 7.562 kB / 0.5133 GB, free: 32.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3424, allocations: 4 kB / 0.5133 GB, free: 32.45 MB / 378.7 MB Notification: Performance of Templates: time 0.003394/0.3458, allocations: 1.586 MB / 0.5148 GB, free: 32.26 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches