Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001707/0.001707, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001241/0.001241, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.003/1.003, allocations: 177.2 MB / 205 MB, free: 5.285 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.275/0.275, allocations: 32.8 MB / 294.3 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] 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 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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 376 MB, free: 4.723 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.532e-05, allocations: 2.312 kB / 376 MB, free: 4.719 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001157/0.001183, allocations: 0.4959 MB / 376.5 MB, free: 4.223 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006835/0.001866, allocations: 223.5 kB / 376.7 MB, free: 4.004 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.274e-05/0.001889, allocations: 4 kB / 376.7 MB, free: 4 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.001908, allocations: 0 / 376.7 MB, free: 4 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.092e-06/0.001914, allocations: 0 / 376.7 MB, free: 4 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0003057/0.00222, allocations: 43.77 kB / 376.7 MB, free: 3.957 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.691e-05/0.002277, allocations: 4 kB / 376.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.036e-05/0.002307, allocations: 0 / 376.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.503e-05/0.002332, allocations: 0 / 376.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.362e-05/0.002356, allocations: 0 / 376.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-06/0.002363, allocations: 0 / 376.8 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.002467, allocations: 55.88 kB / 376.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-06/0.002475, allocations: 7.938 kB / 376.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.988e-05/0.002495, allocations: 0 / 376.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.002605, allocations: 55.88 kB / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.002608, allocations: 0 / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.002608, allocations: 0 / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.002613, allocations: 0 / 376.9 MB, free: 3.836 MB / 346.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.0002895/0.002902, allocations: 374 kB / 377.2 MB, free: 3.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.002939, allocations: 8.031 kB / 377.2 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.707e-05/0.002976, allocations: 8.875 kB / 377.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.875e-05/0.003035, allocations: 104.6 kB / 377.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.003047, allocations: 4.375 kB / 377.4 MB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.003055, allocations: 8.375 kB / 377.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.456e-05/0.00314, allocations: 59.95 kB / 377.4 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.003147, allocations: 192 / 377.4 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.003156, allocations: 384 / 377.4 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.003164, allocations: 384 / 377.4 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.143e-05/0.003186, allocations: 33.64 kB / 377.5 MB, free: 3.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.832e-05/0.003274, allocations: 104.6 kB / 377.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.976e-05/0.003324, allocations: 64.66 kB / 377.6 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.012e-05/0.003344, allocations: 33.39 kB / 377.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-06/0.003348, allocations: 0 / 377.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.003385, allocations: 71.16 kB / 377.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.003386, allocations: 0 / 377.7 MB, free: 2.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001624/0.003548, allocations: 114.8 kB / 377.8 MB, free: 2.676 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.003584, allocations: 81.05 kB / 377.9 MB, free: 2.578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.902e-05/0.003623, allocations: 142.2 kB / 378.1 MB, free: 2.426 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.003631, allocations: 25.7 kB / 378.1 MB, free: 2.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.721e-05/0.003658, allocations: 134.9 kB / 378.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.003675, allocations: 4.328 kB / 378.2 MB, free: 2.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.003701, allocations: 15.38 kB / 378.2 MB, free: 2.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.003808, allocations: 0.4883 MB / 378.7 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.003825, allocations: 29.83 kB / 378.7 MB, free: 1.695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.316e-05/0.003838, allocations: 29.69 kB / 378.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.367e-05/0.003882, allocations: 63.09 kB / 378.8 MB, free: 1.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.003885, allocations: 0 / 378.8 MB, free: 1.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.103e-05/0.003946, allocations: 93.06 kB / 378.9 MB, free: 1.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.003972, allocations: 41.62 kB / 379 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.003977, allocations: 0 / 379 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.003989, allocations: 0 / 379 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.687e-06/0.003993, allocations: 0 / 379 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.003998, allocations: 96 / 379 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.161e-05/0.004009, allocations: 7.938 kB / 379 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.004015, allocations: 0 / 379 MB, free: 1.418 MB / 346.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 7.409e-05/0.00409, allocations: 182.3 kB / 379.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-06/0.004095, allocations: 0 / 379.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.524e-06/0.004102, allocations: 7 kB / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.004104, allocations: 0 / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.004107, allocations: 0 / 379.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.004111, allocations: 3.984 kB / 379.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.31e-05/0.004164, allocations: 112.6 kB / 379.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.004164, allocations: 0 / 379.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.004165, allocations: 8 kB / 379.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.004166, allocations: 0 / 379.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.004173, allocations: 0 / 379.3 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.004173, allocations: 3.938 kB / 379.3 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.004175, allocations: 0 / 379.3 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.231e-05/0.004257, allocations: 139.7 kB / 379.4 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-06/0.004261, allocations: 4 kB / 379.4 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.004274, allocations: 4 kB / 379.4 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.139e-06/0.004279, allocations: 0 / 379.4 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.00429, allocations: 0 / 379.4 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-06/0.004293, allocations: 8.031 kB / 379.4 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.812e-05/0.004321, allocations: 127.2 kB / 379.6 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004321, allocations: 0 / 379.6 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000151/0.004472, allocations: 15.94 kB / 379.6 MB, free: 0.7305 MB / 346.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.0003738/0.004846, allocations: 200 kB / 379.8 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001077/0.004954, allocations: 122.5 kB / 379.9 MB, free: 424 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.004956, allocations: 0 / 379.9 MB, free: 424 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.295e-05/0.004989, allocations: 92.78 kB / 380 MB, free: 308 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.29e-05/0.005082, allocations: 3.938 kB / 380 MB, free: 304 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001689/0.00525, allocations: 117.8 kB / 380.1 MB, free: 148 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.999e-05/0.00528, allocations: 59.34 kB / 380.2 MB, free: 68 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.005286, allocations: 0 / 380.2 MB, free: 68 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.617e-05/0.005302, allocations: 8.5 kB / 380.2 MB, free: 60 kB / 346.7 MB Notification: Performance of SimCode: time 8.51e-07/0.005303, allocations: 0 / 380.2 MB, free: 60 kB / 346.7 MB Notification: Performance of Templates: time 0.002447/0.00775, allocations: 0.682 MB / 380.9 MB, free: 15.38 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.211963511072099]