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.001139/0.001139, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1952/0.1952, allocations: 46.11 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 75.88 kB / 482 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.273, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001345/0.2744, allocations: 480.4 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004709/0.2749, allocations: 213.2 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.2749, allocations: 10.06 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.065e-05/0.2749, allocations: 0 / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.2749, allocations: 0 / 0.5323 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.0002492/0.2752, allocations: 42.38 kB / 0.5323 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.865e-05/0.2752, allocations: 3.984 kB / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.344e-05/0.2753, allocations: 1.906 kB / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.182e-05/0.2753, allocations: 0 / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.905e-05/0.2753, allocations: 1.875 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-06/0.2753, allocations: 3.938 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.2754, allocations: 54.12 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.461e-06/0.2755, allocations: 0 / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.601e-05/0.2755, allocations: 9.188 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.449e-05/0.2756, allocations: 37.05 kB / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2756, allocations: 0 / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.2756, allocations: 0 / 0.5325 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.2756, allocations: 5.531 kB / 0.5325 GB, free: 13.01 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.0002701/0.2759, allocations: 348.6 kB / 0.5328 GB, free: 12.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.2759, allocations: 9.156 kB / 0.5328 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.338e-05/0.2759, allocations: 0.9375 kB / 0.5328 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.488e-05/0.276, allocations: 164.4 kB / 0.533 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.276, allocations: 1.938 kB / 0.533 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/0.2761, allocations: 4.375 kB / 0.533 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.756e-05/0.2761, allocations: 29.14 kB / 0.533 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-06/0.2761, allocations: 192 / 0.533 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.2762, allocations: 5.562 kB / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.892e-06/0.2762, allocations: 3.938 kB / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.766e-05/0.2762, allocations: 5.672 kB / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001019/0.2763, allocations: 149.7 kB / 0.5331 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.345e-05/0.2763, allocations: 21.08 kB / 0.5332 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.206e-05/0.2763, allocations: 6.172 kB / 0.5332 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-06/0.2764, allocations: 0 / 0.5332 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.2764, allocations: 57.7 kB / 0.5332 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.2764, allocations: 0 / 0.5332 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.2765, allocations: 79.73 kB / 0.5333 GB, free: 11.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2766, allocations: 77.11 kB / 0.5334 GB, free: 11.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.865e-05/0.2766, allocations: 91.05 kB / 0.5335 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.2767, allocations: 29.83 kB / 0.5335 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.998e-05/0.2767, allocations: 80.14 kB / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.2767, allocations: 1.188 kB / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.2767, allocations: 12.47 kB / 0.5336 GB, free: 11.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.2768, allocations: 314.8 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.215e-06/0.2768, allocations: 1.781 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.608e-06/0.2768, allocations: 0 / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.998e-05/0.2769, allocations: 72.16 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2769, allocations: 3.938 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.706e-05/0.2769, allocations: 57.75 kB / 0.534 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.277, allocations: 35.92 kB / 0.534 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.277, allocations: 0 / 0.534 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.277, allocations: 5.375 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.014e-06/0.277, allocations: 3.984 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.277, allocations: 0 / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.438e-05/0.277, allocations: 1.562 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.277, allocations: 0 / 0.5341 GB, free: 11.16 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 7.148e-05/0.2771, allocations: 146.2 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.2771, allocations: 1.031 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-06/0.2771, allocations: 7.062 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.2772, allocations: 0 / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2772, allocations: 1.031 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.2772, allocations: 0 / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.38e-05/0.2772, allocations: 148.3 kB / 0.5343 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.2773, allocations: 0 / 0.5343 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.893e-06/0.2773, allocations: 4 kB / 0.5343 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.2773, allocations: 4 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.2773, allocations: 5.5 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.2773, allocations: 0 / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2773, allocations: 5.406 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.697e-05/0.2774, allocations: 88.77 kB / 0.5344 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.2774, allocations: 78.2 kB / 0.5345 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.2774, allocations: 5.188 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-06/0.2774, allocations: 0 / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.2775, allocations: 9.531 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.2775, allocations: 0 / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.069e-05/0.2775, allocations: 76.81 kB / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2775, allocations: 0 / 0.5346 GB, free: 10.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001994/0.2777, allocations: 18.95 kB / 0.5346 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.0003455/0.278, allocations: 204.5 kB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.183e-05/0.2781, allocations: 68.69 kB / 0.5349 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2781, allocations: 0 / 0.5349 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.46e-05/0.2782, allocations: 55 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.2783, allocations: 1.812 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001611/0.2785, allocations: 110.2 kB / 0.535 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.2787, allocations: 0.675 MB / 0.5357 GB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-06/0.2787, allocations: 7.438 kB / 0.5357 GB, free: 9.387 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2787, allocations: 0 / 0.5357 GB, free: 9.387 MB / 398.1 MB Notification: Performance of Templates: time 0.001792/0.2805, allocations: 0.7551 MB / 0.5365 GB, free: 9 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/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) Reference file matches