Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001338/0.001338, allocations: 81.95 kB / 21.44 MB, free: 3.059 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.001514/0.001514, allocations: 166.8 kB / 24.84 MB, free: 9.238 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9771/0.9771, allocations: 158.6 MB / 186.7 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.134/0.134, allocations: 32.37 MB / 271.5 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 348.9 MB, free: 9.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.827e-05, allocations: 4.281 kB / 348.9 MB, free: 9.207 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001177/0.001206, allocations: 0.5004 MB / 349.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003841/0.00159, allocations: 211.4 kB / 349.6 MB, free: 8.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.909e-05/0.001619, allocations: 4 kB / 349.6 MB, free: 8.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.001634, allocations: 3.938 kB / 349.6 MB, free: 8.496 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.673e-06/0.001641, allocations: 0 / 349.6 MB, free: 8.496 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.001903, allocations: 39.83 kB / 349.6 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.775e-05/0.00196, allocations: 7.984 kB / 349.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.158e-05/0.002002, allocations: 0 / 349.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.636e-05/0.002028, allocations: 0 / 349.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.927e-05/0.002058, allocations: 0 / 349.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.304e-06/0.002065, allocations: 0 / 349.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.801e-05/0.002163, allocations: 51.89 kB / 349.7 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-06/0.00217, allocations: 0 / 349.7 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.588e-05/0.002186, allocations: 7.938 kB / 349.7 MB, free: 8.391 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.002291, allocations: 51.86 kB / 349.7 MB, free: 8.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.002294, allocations: 4 kB / 349.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.002295, allocations: 0 / 349.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.269e-06/0.002299, allocations: 0 / 349.8 MB, free: 8.336 MB / 282.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.0002033/0.002503, allocations: 381.9 kB / 350.1 MB, free: 7.918 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.002536, allocations: 8.031 kB / 350.1 MB, free: 7.91 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.00256, allocations: 0.9375 kB / 350.1 MB, free: 7.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.87e-05/0.002599, allocations: 108.6 kB / 350.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.00261, allocations: 384 / 350.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-06/0.002615, allocations: 384 / 350.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.603e-05/0.002671, allocations: 67.89 kB / 350.3 MB, free: 7.699 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.002678, allocations: 192 / 350.3 MB, free: 7.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-06/0.002683, allocations: 384 / 350.3 MB, free: 7.699 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.002688, allocations: 384 / 350.3 MB, free: 7.699 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.173e-05/0.002699, allocations: 33.64 kB / 350.3 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.251e-05/0.002752, allocations: 89.27 kB / 350.4 MB, free: 7.547 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.107e-05/0.002783, allocations: 52.8 kB / 350.5 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-06/0.002793, allocations: 37.39 kB / 350.5 MB, free: 7.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-06/0.002796, allocations: 3.984 kB / 350.5 MB, free: 7.426 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.002818, allocations: 67.09 kB / 350.6 MB, free: 7.344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.002818, allocations: 4 kB / 350.6 MB, free: 7.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001196/0.002938, allocations: 118.7 kB / 350.7 MB, free: 7.199 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.044e-05/0.002958, allocations: 81.09 kB / 350.8 MB, free: 7.102 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.917e-05/0.002977, allocations: 142.2 kB / 350.9 MB, free: 6.949 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.937e-06/0.002981, allocations: 25.7 kB / 350.9 MB, free: 6.918 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.878e-06/0.002991, allocations: 126.9 kB / 351.1 MB, free: 6.789 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.003004, allocations: 3.984 kB / 351.1 MB, free: 6.785 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/0.003023, allocations: 23.38 kB / 351.1 MB, free: 6.754 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.961e-05/0.003062, allocations: 496.1 kB / 351.6 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.014e-05/0.003073, allocations: 29.7 kB / 351.6 MB, free: 6.223 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.763e-06/0.003079, allocations: 33.77 kB / 351.6 MB, free: 6.184 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.93e-05/0.003109, allocations: 67.08 kB / 351.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.00311, allocations: 0 / 351.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.462e-05/0.003155, allocations: 89.11 kB / 351.8 MB, free: 5.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.003176, allocations: 29.7 kB / 351.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.00318, allocations: 0 / 351.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.506e-06/0.003188, allocations: 0 / 351.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.00319, allocations: 0 / 351.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.003192, allocations: 4 kB / 351.8 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.223e-05/0.003204, allocations: 8.422 kB / 351.8 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.003209, allocations: 0 / 351.8 MB, free: 5.949 MB / 282.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.005e-05/0.003249, allocations: 190.2 kB / 352 MB, free: 5.746 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-06/0.003254, allocations: 3.938 kB / 352 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.714e-06/0.003262, allocations: 3 kB / 352 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.003263, allocations: 0 / 352 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.003265, allocations: 0 / 352 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.003267, allocations: 4 kB / 352 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.726e-05/0.003305, allocations: 97.16 kB / 352.1 MB, free: 5.613 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.003306, allocations: 3.984 kB / 352.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-07/0.003306, allocations: 0 / 352.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-07/0.003307, allocations: 4 kB / 352.1 MB, free: 5.605 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.466e-06/0.00331, allocations: 0 / 352.1 MB, free: 5.605 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.003311, allocations: 4 kB / 352.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.003312, allocations: 0 / 352.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.99e-05/0.003361, allocations: 127.8 kB / 352.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-06/0.003365, allocations: 0 / 352.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.275e-06/0.003373, allocations: 0 / 352.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.248e-06/0.003377, allocations: 7.938 kB / 352.3 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-06/0.003386, allocations: 4 kB / 352.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-06/0.003388, allocations: 0 / 352.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.229e-05/0.0034, allocations: 131.2 kB / 352.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0034, allocations: 0 / 352.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001422/0.003542, allocations: 15.94 kB / 352.4 MB, free: 5.285 MB / 282.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.0003289/0.003871, allocations: 220.2 kB / 352.6 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.432e-05/0.003946, allocations: 118.5 kB / 352.8 MB, free: 4.965 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.003947, allocations: 4 kB / 352.8 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.539e-05/0.003963, allocations: 88.8 kB / 352.8 MB, free: 4.852 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.258e-05/0.004055, allocations: 7.938 kB / 352.9 MB, free: 4.844 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001207/0.004176, allocations: 113.6 kB / 353 MB, free: 4.695 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.119e-05/0.004197, allocations: 51.48 kB / 353 MB, free: 4.625 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.004202, allocations: 4 kB / 353 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.004228, allocations: 70.2 kB / 353.1 MB, free: 4.551 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.004229, allocations: 0 / 353.1 MB, free: 4.551 MB / 282.7 MB Notification: Performance of Templates: time 0.00216/0.006388, allocations: 0.6896 MB / 353.8 MB, free: 3.863 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.055258891079575]