Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 174 kB / 24.91 MB, free: 8.781 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.013/1.013, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2536/0.2536, allocations: 34.26 MB / 296.1 MB, free: 0.6172 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.239e-05/1.386e-05, allocations: 5.438 kB / 325.3 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009844/0.0009982, allocations: 0.5333 MB / 325.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003815/0.00138, allocations: 227.3 kB / 326 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.782e-05/0.001398, allocations: 0 / 326 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.095e-05/0.001409, allocations: 4 kB / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.001414, allocations: 0 / 326 MB, free: 6.945 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.000226/0.00164, allocations: 39.78 kB / 326.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.472e-05/0.001685, allocations: 3.938 kB / 326.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.204e-05/0.001717, allocations: 4 kB / 326.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.54e-05/0.001743, allocations: 0 / 326.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.323e-05/0.001766, allocations: 4 kB / 326.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.472e-06/0.001772, allocations: 0 / 326.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.001882, allocations: 59.86 kB / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.812e-06/0.001889, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.321e-05/0.001902, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.031e-05/0.001992, allocations: 56.44 kB / 326.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.001994, allocations: 0 / 326.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.001995, allocations: 0 / 326.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.835e-06/0.001998, allocations: 0 / 326.2 MB, free: 6.781 MB / 298.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.0001825/0.00218, allocations: 254.3 kB / 326.4 MB, free: 6.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.00221, allocations: 11.97 kB / 326.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.29e-05/0.002232, allocations: 8.938 kB / 326.4 MB, free: 6.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.8e-05/0.00228, allocations: 101.8 kB / 326.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.073e-06/0.002287, allocations: 384 / 326.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-06/0.002293, allocations: 384 / 326.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.42e-05/0.002347, allocations: 59.97 kB / 326.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.002353, allocations: 192 / 326.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-06/0.002358, allocations: 384 / 326.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.002364, allocations: 8.359 kB / 326.6 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.551e-05/0.002379, allocations: 37.58 kB / 326.6 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.273e-05/0.002432, allocations: 53.05 kB / 326.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.667e-05/0.002469, allocations: 48.31 kB / 326.7 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.447e-05/0.002483, allocations: 30.56 kB / 326.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-06/0.002485, allocations: 4.062 kB / 326.8 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.002511, allocations: 60.27 kB / 326.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.41e-07/0.002512, allocations: 0 / 326.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001068/0.002618, allocations: 118.7 kB / 327 MB, free: 5.848 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.002648, allocations: 77.11 kB / 327 MB, free: 5.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.594e-05/0.002674, allocations: 89.86 kB / 327.1 MB, free: 5.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.093e-06/0.002681, allocations: 25.7 kB / 327.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.792e-05/0.002699, allocations: 80.14 kB / 327.2 MB, free: 5.543 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.002713, allocations: 5.5 kB / 327.2 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.817e-05/0.002731, allocations: 21.69 kB / 327.2 MB, free: 5.512 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.401e-05/0.002795, allocations: 314.8 kB / 327.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.107e-05/0.002806, allocations: 29.7 kB / 327.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.079e-05/0.002817, allocations: 25.7 kB / 327.6 MB, free: 5.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.381e-05/0.002851, allocations: 60.27 kB / 327.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.002852, allocations: 0 / 327.7 MB, free: 5.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.766e-05/0.0029, allocations: 93.03 kB / 327.8 MB, free: 4.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.002924, allocations: 33.7 kB / 327.8 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.002927, allocations: 4.094 kB / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.686e-06/0.002936, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.002937, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-06/0.002939, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.267e-06/0.002948, allocations: 0 / 327.8 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.002954, allocations: 4 kB / 327.8 MB, free: 4.898 MB / 298.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.931e-05/0.003003, allocations: 143.4 kB / 327.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-06/0.003007, allocations: 4 kB / 327.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.751e-06/0.003013, allocations: 3 kB / 327.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.22e-07/0.003014, allocations: 0 / 327.9 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.003015, allocations: 4 kB / 328 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.003018, allocations: 0 / 328 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.808e-05/0.003056, allocations: 65.84 kB / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.003056, allocations: 0 / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.003056, allocations: 0 / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.61e-07/0.003057, allocations: 0 / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-06/0.00306, allocations: 0 / 328 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.003061, allocations: 3.984 kB / 328 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.003062, allocations: 0 / 328 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.099e-05/0.003113, allocations: 120.5 kB / 328.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-06/0.003117, allocations: 4.328 kB / 328.1 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.476e-06/0.003125, allocations: 4.031 kB / 328.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.807e-06/0.003129, allocations: 0 / 328.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-06/0.003138, allocations: 12 kB / 328.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-06/0.003139, allocations: 0 / 328.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.509e-06/0.003144, allocations: 4.859 kB / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003144, allocations: 0 / 328.2 MB, free: 4.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001068/0.00325, allocations: 15.94 kB / 328.2 MB, free: 4.457 MB / 298.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.0003312/0.003582, allocations: 208.6 kB / 328.4 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.447e-05/0.003656, allocations: 120.1 kB / 328.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.00366, allocations: 4 kB / 328.5 MB, free: 4.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.341e-05/0.003683, allocations: 90.03 kB / 328.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.266e-05/0.003726, allocations: 7.938 kB / 328.6 MB, free: 4.043 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001171/0.003843, allocations: 108.6 kB / 328.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.285e-05/0.003866, allocations: 51.36 kB / 328.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.308e-06/0.00387, allocations: 3.938 kB / 328.8 MB, free: 3.828 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.003899, allocations: 55.38 kB / 328.8 MB, free: 3.773 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.0039, allocations: 0 / 328.8 MB, free: 3.773 MB / 298.7 MB Notification: Performance of Templates: time 0.002119/0.006019, allocations: 0.6909 MB / 329.5 MB, free: 3.086 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 2.7321244329214096]