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.001302/0.001302, allocations: 107.8 kB / 18.46 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001523/0.001523, allocations: 211.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 247.6 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.1949/0.1949, allocations: 46.09 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 76.06 kB / 482 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3072, allocations: 62.42 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001443/0.3087, allocations: 0.4909 MB / 0.5321 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005132/0.3092, allocations: 206.7 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.3093, allocations: 3.938 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.3093, allocations: 0 / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.274e-06/0.3093, 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.0002718/0.3096, allocations: 42.22 kB / 0.5323 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.013e-05/0.3097, allocations: 1.906 kB / 0.5323 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.993e-05/0.3097, allocations: 9.766 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.415e-05/0.3097, allocations: 0 / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.214e-05/0.3097, allocations: 3.984 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-06/0.3098, allocations: 5.719 kB / 0.5324 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.3099, allocations: 49.08 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.572e-06/0.3099, allocations: 3.938 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.76e-05/0.3099, allocations: 1.781 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.31, allocations: 45.09 kB / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.31, allocations: 0 / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.31, allocations: 0 / 0.5325 GB, free: 13.01 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.3101, allocations: 3.938 kB / 0.5325 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.0003316/0.3104, allocations: 352.9 kB / 0.5328 GB, free: 12.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3105, allocations: 9.031 kB / 0.5328 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.337e-05/0.3105, allocations: 2.281 kB / 0.5328 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.387e-05/0.3106, allocations: 160.4 kB / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.355e-06/0.3106, allocations: 384 / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.3106, allocations: 1.5 kB / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.834e-05/0.3107, allocations: 32.84 kB / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.3107, allocations: 192 / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.3107, allocations: 9.125 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3107, allocations: 3.938 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.729e-05/0.3107, allocations: 1.375 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000113/0.3109, allocations: 147.3 kB / 0.5332 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.453e-05/0.311, allocations: 20.69 kB / 0.5332 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.311, allocations: 7.641 kB / 0.5332 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.311, allocations: 0 / 0.5332 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.311, allocations: 60.27 kB / 0.5332 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.311, allocations: 0 / 0.5332 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001555/0.3112, allocations: 71.56 kB / 0.5333 GB, free: 11.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.3113, allocations: 81.09 kB / 0.5334 GB, free: 11.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.291e-05/0.3113, allocations: 89.86 kB / 0.5335 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.3113, allocations: 27.77 kB / 0.5335 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.212e-05/0.3113, allocations: 80.14 kB / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.3114, allocations: 0 / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.707e-05/0.3114, allocations: 15.81 kB / 0.5336 GB, free: 11.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3115, allocations: 310.8 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.3115, allocations: 7.312 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.32e-06/0.3115, allocations: 0 / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.088e-05/0.3116, allocations: 59.33 kB / 0.5339 GB, free: 11.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3116, allocations: 7.875 kB / 0.534 GB, free: 11.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.42e-05/0.3116, allocations: 61.95 kB / 0.534 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.3117, allocations: 32.23 kB / 0.534 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3117, allocations: 4.094 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3117, allocations: 3.938 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3117, allocations: 0 / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.3117, allocations: 1.594 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.335e-05/0.3117, allocations: 0 / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-06/0.3117, allocations: 5.562 kB / 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.2e-05/0.3118, allocations: 145 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.3118, allocations: 1.719 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-06/0.3119, allocations: 3.125 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3119, allocations: 7.938 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3119, allocations: 0 / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.3119, allocations: 82.78 kB / 0.5343 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.3119, allocations: 0 / 0.5343 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-06/0.3119, allocations: 5.594 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.3119, allocations: 0 / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000104/0.3121, allocations: 200.3 kB / 0.5345 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001738/0.3122, allocations: 244.7 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.397e-05/0.3123, allocations: 0 / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.569e-05/0.3123, allocations: 75.28 kB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of Backend: time 3.2e-07/0.3123, allocations: 1.25 kB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006156/0.3129, allocations: 244.9 kB / 0.535 GB, free: 10.18 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003187/0.3132, allocations: 0.5862 MB / 0.5356 GB, free: 9.535 MB / 398.1 MB Notification: Performance of Templates: time 0.03462/0.3479, allocations: 0.5926 MB / 0.5362 GB, free: 9.219 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