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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001722/0.001722, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002385/0.002385, allocations: 214.2 kB / 23.54 MB, free: 5.387 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 230.2 MB / 256.7 MB, free: 8.66 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 46.89 MB / 359.9 MB, free: 4.973 MB / 286.1 MB [Timeout remaining time 90] 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=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.002564/0.002564, allocations: 83.88 kB / 0.495 GB, free: 8.684 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3429, allocations: 65.98 MB / 0.5594 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00171/0.3446, allocations: 483 kB / 0.5599 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005328/0.3452, allocations: 217.1 kB / 0.5601 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.428e-05/0.3452, allocations: 0 / 0.5601 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.3452, allocations: 3.938 kB / 0.5601 GB, free: 4.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-06/0.3452, allocations: 0 / 0.5601 GB, free: 4.625 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002865/0.3455, allocations: 43.89 kB / 0.5601 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.97e-05/0.3456, allocations: 3.984 kB / 0.5601 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.917e-05/0.3456, allocations: 7.938 kB / 0.5601 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.555e-05/0.3456, allocations: 8 kB / 0.5601 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.906e-05/0.3456, allocations: 0 / 0.5601 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.071e-06/0.3456, allocations: 0 / 0.5601 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.3458, allocations: 51.95 kB / 0.5602 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.643e-06/0.3458, allocations: 0 / 0.5602 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.945e-05/0.3458, allocations: 3.984 kB / 0.5602 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.3459, allocations: 43.69 kB / 0.5602 GB, free: 4.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3459, allocations: 0 / 0.5602 GB, free: 4.469 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3459, allocations: 0 / 0.5602 GB, free: 4.469 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3459, allocations: 0 / 0.5602 GB, free: 4.469 MB / 398.1 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.0003596/0.3463, allocations: 352 kB / 0.5606 GB, free: 4.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3463, allocations: 12.03 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.3463, allocations: 0.9375 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.3465, allocations: 168.4 kB / 0.5607 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.3466, allocations: 384 / 0.5607 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-06/0.3466, allocations: 384 / 0.5607 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.359e-05/0.3467, allocations: 30.27 kB / 0.5608 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3467, allocations: 8.109 kB / 0.5608 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3467, allocations: 3.938 kB / 0.5608 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.3467, allocations: 4 kB / 0.5608 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.724e-05/0.3467, allocations: 0 / 0.5608 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001608/0.3469, allocations: 149.7 kB / 0.5609 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.106e-05/0.3469, allocations: 18.58 kB / 0.5609 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.579e-05/0.3469, allocations: 8.953 kB / 0.561 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.3469, allocations: 0 / 0.561 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.622e-05/0.347, allocations: 60.27 kB / 0.561 GB, free: 3.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.347, allocations: 4 kB / 0.561 GB, free: 3.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.3472, allocations: 71.27 kB / 0.5611 GB, free: 3.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.3472, allocations: 77.11 kB / 0.5612 GB, free: 3.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.497e-05/0.3473, allocations: 101.8 kB / 0.5613 GB, free: 3.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.3473, allocations: 25.7 kB / 0.5613 GB, free: 3.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.3473, allocations: 80.14 kB / 0.5614 GB, free: 3.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.3474, allocations: 7.938 kB / 0.5614 GB, free: 3.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.3474, allocations: 9.719 kB / 0.5614 GB, free: 3.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3475, allocations: 318.9 kB / 0.5617 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.3476, allocations: 4 kB / 0.5617 GB, free: 2.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-06/0.3476, allocations: 0 / 0.5617 GB, free: 2.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.895e-05/0.3476, allocations: 72.19 kB / 0.5617 GB, free: 2.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3476, allocations: 0 / 0.5617 GB, free: 2.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.275e-05/0.3477, allocations: 55.41 kB / 0.5618 GB, free: 2.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-05/0.3477, allocations: 33.7 kB / 0.5618 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3478, allocations: 0 / 0.5618 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3478, allocations: 8.031 kB / 0.5618 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.414e-06/0.3478, allocations: 3.984 kB / 0.5618 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3478, allocations: 0 / 0.5618 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.57e-05/0.3478, allocations: 0 / 0.5618 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3478, allocations: 4 kB / 0.5618 GB, free: 2.539 MB / 398.1 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 8.681e-05/0.3479, allocations: 131.5 kB / 0.562 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.445e-06/0.3479, allocations: 0 / 0.562 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.147e-06/0.3479, allocations: 11.06 kB / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3479, allocations: 0 / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3479, allocations: 4 kB / 0.562 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.3479, allocations: 0 / 0.562 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.348, allocations: 149.7 kB / 0.5621 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.348, allocations: 0 / 0.5621 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.348, allocations: 0 / 0.5621 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.348, allocations: 4 kB / 0.5621 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.348, allocations: 7.875 kB / 0.5621 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.348, allocations: 0 / 0.5621 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.348, allocations: 0 / 0.5621 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.3481, allocations: 98.81 kB / 0.5622 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.3482, allocations: 77.11 kB / 0.5623 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3482, allocations: 3.938 kB / 0.5623 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3482, allocations: 0 / 0.5623 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.3482, allocations: 4 kB / 0.5623 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.3482, allocations: 0 / 0.5623 GB, free: 1.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.3482, allocations: 75.28 kB / 0.5624 GB, free: 1.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3482, allocations: 0 / 0.5624 GB, free: 1.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.3485, allocations: 23.92 kB / 0.5624 GB, free: 1.855 MB / 398.1 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.0004525/0.349, allocations: 202.3 kB / 0.5626 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.3491, allocations: 63.34 kB / 0.5627 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3491, allocations: 0 / 0.5627 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.473e-05/0.3491, allocations: 51.41 kB / 0.5627 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.3492, allocations: 6.344 kB / 0.5627 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001885/0.3494, allocations: 114.9 kB / 0.5628 GB, free: 1.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.3497, allocations: 0.669 MB / 0.5635 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.3497, allocations: 7.438 kB / 0.5635 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3497, allocations: 3.938 kB / 0.5635 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of Templates: time 0.002659/0.3524, allocations: 0.7581 MB / 0.5642 GB, free: 15.92 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches