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.001491/0.001491, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 197.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2252/0.2252, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002846/0.002846, allocations: 75.88 kB / 481.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4276, allocations: 62.44 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001518/0.4291, allocations: 484.9 kB / 0.5314 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005595/0.4297, allocations: 209.5 kB / 0.5316 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.047e-05/0.4297, allocations: 0 / 0.5316 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.4298, allocations: 0 / 0.5316 GB, free: 13.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.4298, allocations: 1.219 kB / 0.5316 GB, free: 13.13 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.0003031/0.4301, allocations: 45.3 kB / 0.5317 GB, free: 13.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.4302, allocations: 6.125 kB / 0.5317 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.046e-05/0.4302, allocations: 9.172 kB / 0.5317 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.4302, allocations: 0 / 0.5317 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.277e-05/0.4303, allocations: 1.219 kB / 0.5317 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-06/0.4303, allocations: 0 / 0.5317 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.4304, allocations: 54.7 kB / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.746e-06/0.4304, allocations: 0 / 0.5317 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.895e-05/0.4305, allocations: 5.344 kB / 0.5317 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.4306, allocations: 49.36 kB / 0.5318 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4306, allocations: 0 / 0.5318 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4306, allocations: 3.938 kB / 0.5318 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.4306, allocations: 0 / 0.5318 GB, free: 13.02 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.0003632/0.431, allocations: 349.6 kB / 0.5321 GB, free: 12.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.431, allocations: 9.062 kB / 0.5321 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.66e-05/0.4311, allocations: 0.9375 kB / 0.5321 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.4312, allocations: 166.3 kB / 0.5323 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.4312, allocations: 384 / 0.5323 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.4312, allocations: 384 / 0.5323 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.047e-05/0.4313, allocations: 33.94 kB / 0.5323 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.4313, allocations: 192 / 0.5323 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.4313, allocations: 3.938 kB / 0.5323 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4313, allocations: 0 / 0.5323 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.895e-05/0.4313, allocations: 5.906 kB / 0.5323 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.4315, allocations: 143.6 kB / 0.5325 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.086e-05/0.4315, allocations: 24.36 kB / 0.5325 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.5e-05/0.4316, allocations: 4.859 kB / 0.5325 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.4316, allocations: 2.062 kB / 0.5325 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.4316, allocations: 60.25 kB / 0.5326 GB, free: 12.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.4316, allocations: 0 / 0.5326 GB, free: 12.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001738/0.4318, allocations: 67 kB / 0.5326 GB, free: 12.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.4319, allocations: 87.27 kB / 0.5327 GB, free: 11.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.248e-05/0.4319, allocations: 89.86 kB / 0.5328 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.4319, allocations: 25.7 kB / 0.5328 GB, free: 11.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.418e-05/0.432, allocations: 84.12 kB / 0.5329 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.432, allocations: 1.812 kB / 0.5329 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-05/0.432, allocations: 11.69 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4321, allocations: 310.8 kB / 0.5332 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.4322, allocations: 1.625 kB / 0.5332 GB, free: 11.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.377e-06/0.4322, allocations: 4 kB / 0.5332 GB, free: 11.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.624e-05/0.4322, allocations: 71.42 kB / 0.5333 GB, free: 11.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4322, allocations: 1.781 kB / 0.5333 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.199e-05/0.4323, allocations: 65.3 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.4324, allocations: 31.17 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4324, allocations: 3.938 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.4324, allocations: 5.438 kB / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.4324, allocations: 0 / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.4324, allocations: 0 / 0.5334 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.632e-05/0.4324, allocations: 5.625 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.4324, allocations: 0 / 0.5334 GB, free: 11.17 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.121e-05/0.4325, allocations: 146.5 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.4325, allocations: 3.984 kB / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.225e-05/0.4326, allocations: 8.5 kB / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.4326, allocations: 0 / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.4326, allocations: 0 / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.4326, allocations: 1.594 kB / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.185e-05/0.4327, allocations: 141.7 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4327, allocations: 5.469 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-06/0.4327, allocations: 3.984 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.4327, allocations: 0 / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.687e-06/0.4327, allocations: 5.562 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.4327, allocations: 0 / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4327, allocations: 0 / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.4328, allocations: 90.12 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.4329, allocations: 81.09 kB / 0.5339 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.4329, allocations: 10.5 kB / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.4329, allocations: 0 / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.4329, allocations: 0.9688 kB / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.4329, allocations: 0 / 0.5339 GB, free: 10.6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.518e-05/0.433, allocations: 77.03 kB / 0.5339 GB, free: 10.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.433, allocations: 0 / 0.5339 GB, free: 10.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002027/0.4332, allocations: 19.44 kB / 0.534 GB, free: 10.52 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.0003494/0.4335, allocations: 215.6 kB / 0.5342 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.599e-05/0.4336, allocations: 61.7 kB / 0.5342 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.4336, allocations: 0 / 0.5342 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.853e-05/0.4337, allocations: 58.38 kB / 0.5343 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.0001176/0.4338, allocations: 1.719 kB / 0.5343 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000163/0.434, allocations: 84.83 kB / 0.5344 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.4342, allocations: 0.674 MB / 0.535 GB, free: 9.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.589e-06/0.4342, allocations: 0 / 0.535 GB, free: 9.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.036e-05/0.4342, allocations: 12.94 kB / 0.535 GB, free: 9.422 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4342, allocations: 0 / 0.535 GB, free: 9.422 MB / 398.1 MB Notification: Performance of Templates: time 0.002684/0.4369, allocations: 0.5755 MB / 0.5356 GB, free: 9.113 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