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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001172, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2538/0.2538, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 71.88 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3632, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001593/0.3648, allocations: 492.7 kB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005738/0.3654, allocations: 212.5 kB / 0.5316 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.498e-05/0.3655, allocations: 0 / 0.5316 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.3655, allocations: 0 / 0.5316 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.057e-06/0.3655, allocations: 0 / 0.5316 GB, free: 13.11 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.0003038/0.3658, allocations: 46.7 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.809e-05/0.3659, allocations: 5.594 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.3659, allocations: 1.531 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.039e-05/0.366, allocations: 3.984 kB / 0.5317 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.512e-05/0.366, allocations: 5.094 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.366, allocations: 3.938 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.3662, allocations: 49.92 kB / 0.5317 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-06/0.3662, allocations: 1.625 kB / 0.5317 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.911e-05/0.3662, allocations: 0 / 0.5317 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.3663, allocations: 48.58 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3664, allocations: 1.5 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3664, allocations: 3.938 kB / 0.5318 GB, free: 13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3664, allocations: 0 / 0.5318 GB, free: 13 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.0004142/0.3668, allocations: 349 kB / 0.5321 GB, free: 12.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.3668, allocations: 12.97 kB / 0.5321 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/0.3669, allocations: 2.844 kB / 0.5321 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.367, allocations: 160.4 kB / 0.5323 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.367, allocations: 384 / 0.5323 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-06/0.367, allocations: 2.281 kB / 0.5323 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.596e-05/0.3671, allocations: 32.06 kB / 0.5323 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3671, allocations: 192 / 0.5323 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3671, allocations: 3.938 kB / 0.5323 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3671, allocations: 5.688 kB / 0.5323 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.687e-05/0.3672, allocations: 0 / 0.5323 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.3673, allocations: 147.5 kB / 0.5325 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.779e-05/0.3673, allocations: 20.36 kB / 0.5325 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.433e-05/0.3674, allocations: 6.734 kB / 0.5325 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-06/0.3674, allocations: 0 / 0.5325 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/0.3674, allocations: 62 kB / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3674, allocations: 0 / 0.5326 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001638/0.3676, allocations: 70.47 kB / 0.5326 GB, free: 11.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3677, allocations: 78.89 kB / 0.5327 GB, free: 11.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.969e-05/0.3677, allocations: 93.86 kB / 0.5328 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.3677, allocations: 25.7 kB / 0.5328 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.775e-05/0.3678, allocations: 80.14 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.3678, allocations: 9.672 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.3678, allocations: 11.53 kB / 0.5329 GB, free: 11.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3679, allocations: 310.8 kB / 0.5332 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.163e-05/0.368, allocations: 5.969 kB / 0.5332 GB, free: 11.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.464e-06/0.368, allocations: 0 / 0.5332 GB, free: 11.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.857e-05/0.368, allocations: 71.67 kB / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.368, allocations: 0 / 0.5333 GB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.44e-05/0.3681, allocations: 62.55 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3681, allocations: 31.11 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3682, allocations: 5.844 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3682, allocations: 3.938 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3682, allocations: 4.094 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3682, allocations: 0 / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.3682, allocations: 2.125 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3682, allocations: 0 / 0.5334 GB, free: 11.15 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.985e-05/0.3683, allocations: 137.8 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.649e-06/0.3683, allocations: 6.234 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.147e-06/0.3683, allocations: 7.062 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.3684, allocations: 0 / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3684, allocations: 0 / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3684, allocations: 4 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.687e-05/0.3685, allocations: 147.2 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3685, allocations: 0 / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3685, allocations: 1.5 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.3685, allocations: 3.984 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.3685, allocations: 5.281 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3685, allocations: 0 / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3685, allocations: 7.922 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.663e-05/0.3686, allocations: 90.66 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.3686, allocations: 81.09 kB / 0.5339 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.3687, allocations: 5 kB / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/0.3687, allocations: 1.25 kB / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.3687, allocations: 0 / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3687, allocations: 1.312 kB / 0.5339 GB, free: 10.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.555e-05/0.3687, allocations: 75.28 kB / 0.5339 GB, free: 10.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3687, allocations: 0 / 0.5339 GB, free: 10.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.369, allocations: 20.94 kB / 0.534 GB, free: 10.5 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.0003907/0.3694, allocations: 214.6 kB / 0.5342 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.965e-05/0.3695, allocations: 64.23 kB / 0.5342 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3695, allocations: 0 / 0.5342 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.791e-05/0.3695, allocations: 56.31 kB / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001161/0.3696, allocations: 0 / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001923/0.3698, allocations: 84.92 kB / 0.5344 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.3701, allocations: 0.6807 MB / 0.535 GB, free: 9.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.3701, allocations: 0 / 0.535 GB, free: 9.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.052e-05/0.3701, allocations: 7.438 kB / 0.535 GB, free: 9.406 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3701, allocations: 0 / 0.535 GB, free: 9.406 MB / 398.1 MB Notification: Performance of Templates: time 0.002823/0.3729, allocations: 0.5757 MB / 0.5356 GB, free: 9.098 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (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) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches