Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001418/0.001418, allocations: 100.6 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4764/0.4764, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.89 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3469, allocations: 62.03 MB / 0.5151 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001596/0.3485, allocations: 0.5376 MB / 0.5157 GB, free: 37.51 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.3495, allocations: 0.7733 MB / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.215e-05/0.3496, allocations: 0 / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.3496, allocations: 0 / 0.5164 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.3498, allocations: 6.844 kB / 0.5164 GB, free: 36.96 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007049/0.3505, allocations: 42.19 kB / 0.5165 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.554e-05/0.3505, allocations: 7.938 kB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.469e-05/0.3506, allocations: 6.844 kB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.568e-05/0.3506, allocations: 0 / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.383e-05/0.3507, allocations: 6.078 kB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.694e-06/0.3507, allocations: 0 / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.3508, allocations: 53.38 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.134e-06/0.3508, allocations: 0 / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.294e-05/0.3508, allocations: 3.984 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.3509, allocations: 50.38 kB / 0.5166 GB, free: 36.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3509, allocations: 0 / 0.5166 GB, free: 36.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.3509, allocations: 0 / 0.5166 GB, free: 36.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.351, allocations: 4 kB / 0.5166 GB, free: 36.88 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.0002534/0.3512, allocations: 352.6 kB / 0.5169 GB, free: 36.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.3513, allocations: 8.969 kB / 0.5169 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.3513, allocations: 0.9375 kB / 0.5169 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.285e-05/0.3514, allocations: 164.4 kB / 0.5171 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.3514, allocations: 11.16 kB / 0.5171 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-06/0.3514, allocations: 384 / 0.5171 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.396e-05/0.3515, allocations: 29.14 kB / 0.5171 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3515, allocations: 7.656 kB / 0.5171 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3515, allocations: 3.938 kB / 0.5172 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3515, allocations: 0 / 0.5172 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.498e-05/0.3515, allocations: 2.875 kB / 0.5172 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.164e-05/0.3516, allocations: 141.7 kB / 0.5173 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.557e-05/0.3516, allocations: 26.08 kB / 0.5173 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.223e-05/0.3517, allocations: 8.141 kB / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-06/0.3517, allocations: 0 / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.3517, allocations: 64.2 kB / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.3517, allocations: 0 / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001286/0.3518, allocations: 63.19 kB / 0.5174 GB, free: 35.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.3519, allocations: 84.28 kB / 0.5175 GB, free: 35.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.889e-05/0.3519, allocations: 97.8 kB / 0.5176 GB, free: 35.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.151e-06/0.3519, allocations: 28.64 kB / 0.5176 GB, free: 35.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.17e-05/0.3519, allocations: 80.39 kB / 0.5177 GB, free: 35.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.352, allocations: 4 kB / 0.5177 GB, free: 35.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.352, allocations: 12.75 kB / 0.5177 GB, free: 35.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.161e-05/0.352, allocations: 314.8 kB / 0.518 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.3521, allocations: 3.422 kB / 0.518 GB, free: 35.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.184e-06/0.3521, allocations: 2.938 kB / 0.518 GB, free: 35.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.877e-05/0.3521, allocations: 63.39 kB / 0.5181 GB, free: 35.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.3521, allocations: 0 / 0.5181 GB, free: 35.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.487e-05/0.3522, allocations: 64.38 kB / 0.5182 GB, free: 35.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3522, allocations: 31.89 kB / 0.5182 GB, free: 35.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3522, allocations: 6.844 kB / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.3522, allocations: 0 / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3522, allocations: 0 / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.3522, allocations: 0 / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.3523, allocations: 0 / 0.5182 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.3523, allocations: 6.969 kB / 0.5182 GB, free: 35.05 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.311e-05/0.3523, allocations: 135.5 kB / 0.5183 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-06/0.3523, allocations: 14.09 kB / 0.5184 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.905e-06/0.3523, allocations: 10.66 kB / 0.5184 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.3523, allocations: 0 / 0.5184 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3524, allocations: 0 / 0.5184 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3524, allocations: 3.984 kB / 0.5184 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.666e-05/0.3524, allocations: 150.1 kB / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3524, allocations: 0 / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.3524, allocations: 0 / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.3524, allocations: 0 / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3524, allocations: 6.938 kB / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3524, allocations: 0 / 0.5185 GB, free: 34.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3525, allocations: 4 kB / 0.5185 GB, free: 34.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.3526, allocations: 0.6354 MB / 0.5191 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.3527, allocations: 77.11 kB / 0.5192 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.3527, allocations: 6.906 kB / 0.5192 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-06/0.3527, allocations: 0 / 0.5192 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.3527, allocations: 4.031 kB / 0.5192 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.3527, allocations: 6.875 kB / 0.5192 GB, free: 33.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.486e-05/0.3528, allocations: 75.28 kB / 0.5193 GB, free: 33.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3528, allocations: 0 / 0.5193 GB, free: 33.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003552/0.3531, allocations: 25.69 kB / 0.5193 GB, free: 33.82 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.0003005/0.3534, allocations: 190.6 kB / 0.5195 GB, free: 33.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.457e-05/0.3535, allocations: 58.44 kB / 0.5196 GB, free: 33.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3535, allocations: 0 / 0.5196 GB, free: 33.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.71e-05/0.3535, allocations: 54.41 kB / 0.5196 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.3537, allocations: 14.75 kB / 0.5196 GB, free: 33.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001723/0.3538, allocations: 173.2 kB / 0.5198 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.656e-05/0.3539, allocations: 0.6758 MB / 0.5205 GB, free: 32.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.839e-06/0.3539, allocations: 0 / 0.5205 GB, free: 32.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.242e-06/0.354, allocations: 7.438 kB / 0.5205 GB, free: 32.66 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.354, allocations: 3.938 kB / 0.5205 GB, free: 32.66 MB / 378.7 MB Notification: Performance of Templates: time 0.002267/0.3562, allocations: 0.6445 MB / 0.5211 GB, free: 32.55 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches