Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009466/0.0009466, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8924/0.8924, allocations: 177 MB / 205.9 MB, free: 4.449 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1507/0.1507, allocations: 34.87 MB / 297.4 MB, free: 13.35 MB / 282.7 MB " [Timeout remaining time 180] 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273e-05/1.428e-05, allocations: 4.094 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0008474/0.0008617, allocations: 499.4 kB / 380.5 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003478/0.00121, allocations: 229.2 kB / 380.7 MB, free: 22.08 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.169e-05/0.001231, allocations: 4 kB / 380.7 MB, free: 22.08 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.331e-05/0.001244, allocations: 0 / 380.7 MB, free: 22.08 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.00125, allocations: 0 / 380.7 MB, free: 22.08 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.001486, allocations: 39.83 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.815e-05/0.001534, allocations: 4 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.00157, allocations: 0 / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.468e-05/0.001595, allocations: 0 / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.694e-05/0.001622, allocations: 4 kB / 380.7 MB, free: 22.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.001627, allocations: 0 / 380.7 MB, free: 22.03 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.65e-05/0.001714, allocations: 51.83 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.644e-06/0.001722, allocations: 3.984 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.455e-05/0.001736, allocations: 8 kB / 380.8 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.229e-05/0.001818, allocations: 47.88 kB / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.00182, allocations: 0 / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.01e-07/0.001821, allocations: 0 / 380.8 MB, free: 21.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.001823, allocations: 0 / 380.8 MB, free: 21.92 MB / 314.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.0001801/0.002003, allocations: 378 kB / 381.2 MB, free: 21.51 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.002036, allocations: 8.031 kB / 381.2 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.002064, allocations: 4.938 kB / 381.2 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.924e-05/0.002103, allocations: 108.6 kB / 381.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-06/0.002112, allocations: 384 / 381.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-06/0.002118, allocations: 4.312 kB / 381.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.038e-05/0.002168, allocations: 59.97 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.002174, allocations: 192 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-06/0.002179, allocations: 384 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.002184, allocations: 384 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.092e-05/0.002195, allocations: 33.64 kB / 381.4 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.008e-05/0.002245, allocations: 93.2 kB / 381.5 MB, free: 21.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.204e-05/0.002277, allocations: 68.75 kB / 381.6 MB, free: 21.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.06e-05/0.002288, allocations: 37.33 kB / 381.6 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-06/0.002291, allocations: 4.062 kB / 381.6 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.002311, allocations: 59.09 kB / 381.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.002312, allocations: 4 kB / 381.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001148/0.002427, allocations: 114.8 kB / 381.8 MB, free: 20.78 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.066e-05/0.002447, allocations: 77.11 kB / 381.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.963e-05/0.002467, allocations: 142.2 kB / 382 MB, free: 20.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-06/0.002471, allocations: 29.7 kB / 382 MB, free: 20.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.058e-05/0.002482, allocations: 126.9 kB / 382.2 MB, free: 20.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.002495, allocations: 3.938 kB / 382.2 MB, free: 20.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.002512, allocations: 19.38 kB / 382.2 MB, free: 20.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.209e-05/0.002554, allocations: 0.4883 MB / 382.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.939e-06/0.002564, allocations: 33.62 kB / 382.7 MB, free: 19.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.00257, allocations: 29.83 kB / 382.7 MB, free: 19.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.64e-05/0.002597, allocations: 63.09 kB / 382.8 MB, free: 19.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.002599, allocations: 0 / 382.8 MB, free: 19.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.315e-05/0.002632, allocations: 85.11 kB / 382.9 MB, free: 19.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.00265, allocations: 37.69 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.002654, allocations: 0 / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.203e-06/0.002661, allocations: 0 / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.002662, allocations: 0 / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.805e-06/0.002664, allocations: 3.984 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.847e-06/0.002673, allocations: 4.094 kB / 382.9 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.002678, allocations: 0 / 382.9 MB, free: 19.54 MB / 314.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.318e-05/0.002722, allocations: 194.2 kB / 383.1 MB, free: 19.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-06/0.002726, allocations: 352 / 383.1 MB, free: 19.33 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-06/0.002732, allocations: 7 kB / 383.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.002733, allocations: 0 / 383.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.002734, allocations: 3.984 kB / 383.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.002736, allocations: 0 / 383.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.532e-05/0.002772, allocations: 97.19 kB / 383.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.002772, allocations: 0 / 383.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.71e-07/0.002773, allocations: 4 kB / 383.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-07/0.002774, allocations: 4 kB / 383.2 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-06/0.002777, allocations: 7.938 kB / 383.2 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.4e-07/0.002777, allocations: 0 / 383.2 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.002778, allocations: 0 / 383.2 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.024e-05/0.002829, allocations: 131.7 kB / 383.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-06/0.002833, allocations: 4 kB / 383.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.077e-06/0.002842, allocations: 4 kB / 383.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.927e-06/0.002846, allocations: 0 / 383.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-06/0.002855, allocations: 3.938 kB / 383.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-06/0.002856, allocations: 0 / 383.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.451e-05/0.002871, allocations: 131.2 kB / 383.5 MB, free: 18.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.002871, allocations: 0 / 383.5 MB, free: 18.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001378/0.003009, allocations: 19.92 kB / 383.5 MB, free: 18.86 MB / 314.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.0003056/0.003314, allocations: 199 kB / 383.7 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.215e-05/0.003396, allocations: 122.5 kB / 383.8 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.003398, allocations: 0 / 383.8 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.792e-05/0.003416, allocations: 88.78 kB / 383.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.027e-05/0.003506, allocations: 7.938 kB / 383.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001425/0.003648, allocations: 103.6 kB / 384 MB, free: 18.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.862e-05/0.003667, allocations: 63.33 kB / 384.1 MB, free: 18.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.003672, allocations: 0 / 384.1 MB, free: 18.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.003698, allocations: 74.14 kB / 384.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of SimCode: time 3.5e-07/0.003698, allocations: 0 / 384.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of Templates: time 0.001983/0.005681, allocations: 0.6865 MB / 384.9 MB, free: 17.45 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.031731762457639]