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.001689/0.001689, allocations: 84.23 kB / 20.21 MB, free: 4.227 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.001712/0.001712, allocations: 161.6 kB / 23.52 MB, free: 0.918 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 1.559/1.559, allocations: 158.6 MB / 185.3 MB, free: 2.891 MB / 170.7 MB " [Timeout remaining time 178] 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.2628/0.2628, allocations: 32.38 MB / 270 MB, free: 14.79 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.473e-06/1.473e-06, allocations: 0 / 346.9 MB, free: 9.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.667e-05/2.814e-05, allocations: 2.312 kB / 346.9 MB, free: 9.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001209/0.001237, allocations: 0.4948 MB / 347.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004574/0.001694, allocations: 217.2 kB / 347.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.386e-05/0.001718, allocations: 0 / 347.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.122e-05/0.001729, allocations: 0 / 347.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.181e-06/0.001736, allocations: 0 / 347.6 MB, free: 9.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.002015, allocations: 43.81 kB / 347.7 MB, free: 9.098 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.673e-05/0.002062, allocations: 7.938 kB / 347.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.569e-05/0.002097, allocations: 0 / 347.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.449e-05/0.002122, allocations: 3.938 kB / 347.7 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.063e-05/0.002153, allocations: 0 / 347.7 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.00216, allocations: 4 kB / 347.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.002265, allocations: 43.95 kB / 347.7 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-06/0.002272, allocations: 4 kB / 347.7 MB, free: 9.035 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.466e-05/0.002296, allocations: 3.984 kB / 347.7 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.0024, allocations: 51.88 kB / 347.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.002402, allocations: 0 / 347.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.002403, allocations: 0 / 347.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.002406, allocations: 0 / 347.8 MB, free: 8.98 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.000229/0.002635, allocations: 276 kB / 348 MB, free: 8.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.002667, allocations: 8.031 kB / 348 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.002718, allocations: 0.9375 kB / 348 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.954e-05/0.002767, allocations: 109.7 kB / 348.2 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.002782, allocations: 4.312 kB / 348.2 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-06/0.002789, allocations: 4.375 kB / 348.2 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.559e-05/0.002864, allocations: 63.95 kB / 348.2 MB, free: 8.449 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.002872, allocations: 4.188 kB / 348.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.002879, allocations: 384 / 348.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.002882, allocations: 384 / 348.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.072e-05/0.002903, allocations: 33.64 kB / 348.3 MB, free: 8.406 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.729e-05/0.00297, allocations: 93.33 kB / 348.4 MB, free: 8.285 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.839e-05/0.003009, allocations: 48.25 kB / 348.4 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.464e-05/0.003023, allocations: 30.56 kB / 348.4 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.003032, allocations: 0 / 348.4 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.003058, allocations: 72.31 kB / 348.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.003059, allocations: 0 / 348.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001607/0.00322, allocations: 110.8 kB / 348.6 MB, free: 7.965 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.003244, allocations: 77.11 kB / 348.7 MB, free: 7.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.879e-05/0.003263, allocations: 93.84 kB / 348.8 MB, free: 7.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-06/0.003269, allocations: 29.7 kB / 348.8 MB, free: 7.734 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.071e-05/0.00328, allocations: 84.14 kB / 348.9 MB, free: 7.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.003293, allocations: 3.938 kB / 348.9 MB, free: 7.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.003314, allocations: 9.719 kB / 348.9 MB, free: 7.629 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.663e-05/0.003351, allocations: 318.8 kB / 349.2 MB, free: 7.309 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.296e-05/0.003364, allocations: 29.83 kB / 349.2 MB, free: 7.273 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.027e-06/0.003373, allocations: 25.7 kB / 349.3 MB, free: 7.242 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.408e-05/0.003407, allocations: 64.27 kB / 349.3 MB, free: 7.164 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.003409, allocations: 3.984 kB / 349.3 MB, free: 7.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.107e-05/0.003461, allocations: 85.11 kB / 349.4 MB, free: 7.059 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.003481, allocations: 33.7 kB / 349.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.003485, allocations: 0 / 349.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.003502, allocations: 0 / 349.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.003503, allocations: 0 / 349.5 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.003507, allocations: 8.031 kB / 349.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.003522, allocations: 11.86 kB / 349.5 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.003527, allocations: 0 / 349.5 MB, free: 7 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 5.223e-05/0.003579, allocations: 139.5 kB / 349.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.266e-06/0.003588, allocations: 0 / 349.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.955e-06/0.003596, allocations: 7 kB / 349.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.003597, allocations: 3.938 kB / 349.6 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.0036, allocations: 0 / 349.6 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.003602, allocations: 0 / 349.6 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.564e-05/0.003638, allocations: 101.2 kB / 349.7 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.003639, allocations: 0 / 349.7 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.003639, allocations: 8 kB / 349.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.003641, allocations: 0 / 349.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.003646, allocations: 0 / 349.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.003647, allocations: 0 / 349.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.003648, allocations: 0 / 349.7 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.466e-05/0.003713, allocations: 128.4 kB / 349.8 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.359e-06/0.003717, allocations: 7.984 kB / 349.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.003728, allocations: 0 / 349.9 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-06/0.003737, allocations: 4 kB / 349.9 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.497e-05/0.003752, allocations: 0 / 349.9 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.003754, allocations: 4.031 kB / 349.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.578e-06/0.003764, allocations: 79.28 kB / 349.9 MB, free: 6.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003764, allocations: 0 / 349.9 MB, free: 6.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002276/0.003991, allocations: 23.92 kB / 350 MB, free: 6.426 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.0004553/0.004447, allocations: 202.8 kB / 350.2 MB, free: 6.262 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.642e-05/0.004533, allocations: 114.8 kB / 350.3 MB, free: 6.125 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.004535, allocations: 0 / 350.3 MB, free: 6.125 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.978e-05/0.004554, allocations: 81.11 kB / 350.4 MB, free: 6.027 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.004683, allocations: 4 kB / 350.4 MB, free: 6.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001482/0.004832, allocations: 112 kB / 350.5 MB, free: 5.879 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.209e-05/0.004854, allocations: 55.48 kB / 350.5 MB, free: 5.805 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.378e-06/0.004858, allocations: 4 kB / 350.5 MB, free: 5.801 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.836e-06/0.004867, allocations: 8.5 kB / 350.5 MB, free: 5.793 MB / 282.7 MB Notification: Performance of SimCode: time 3.91e-07/0.004867, allocations: 0 / 350.5 MB, free: 5.793 MB / 282.7 MB Notification: Performance of Templates: time 0.002919/0.007786, allocations: 0.6274 MB / 351.2 MB, free: 5.172 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.692743982071988]