Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 204.1 kB / 15.8 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007384/0.0007384, allocations: 98.64 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1785/0.1785, allocations: 44.83 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.0002269, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.08974, allocations: 62.96 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0004801/0.09027, allocations: 204.6 kB / 0.5155 GB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004317/0.09071, allocations: 197.1 kB / 0.5157 GB, free: 2.371 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.66e-05/0.09074, allocations: 0 / 0.5157 GB, free: 2.371 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.121e-05/0.09076, allocations: 0 / 0.5157 GB, free: 2.371 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.21e-06/0.09077, allocations: 0 / 0.5157 GB, free: 2.371 MB / 346.7 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.0002067/0.09098, allocations: 35.91 kB / 0.5157 GB, free: 2.336 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.916e-05/0.09102, allocations: 0 / 0.5157 GB, free: 2.336 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.09107, allocations: 15.91 kB / 0.5157 GB, free: 2.32 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.301e-05/0.09109, allocations: 0 / 0.5157 GB, free: 2.32 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.866e-05/0.09111, allocations: 0 / 0.5157 GB, free: 2.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-06/0.09112, allocations: 0 / 0.5157 GB, free: 2.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.09123, allocations: 47.95 kB / 0.5158 GB, free: 2.273 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.639e-06/0.09124, allocations: 0 / 0.5158 GB, free: 2.273 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.385e-05/0.09127, allocations: 33.7 kB / 0.5158 GB, free: 2.234 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.546e-05/0.09135, allocations: 27.95 kB / 0.5159 GB, free: 2.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.09137, allocations: 3.938 kB / 0.5159 GB, free: 2.203 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09137, allocations: 0 / 0.5159 GB, free: 2.203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.09138, allocations: 0 / 0.5159 GB, free: 2.203 MB / 346.7 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.0002481/0.09163, allocations: 345.1 kB / 0.5162 GB, free: 1.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.09167, allocations: 8.031 kB / 0.5162 GB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.415e-05/0.0917, allocations: 3.984 kB / 0.5162 GB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.404e-05/0.09179, allocations: 163 kB / 0.5164 GB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.0918, allocations: 7.938 kB / 0.5164 GB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.09182, allocations: 4 kB / 0.5164 GB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.131e-05/0.09188, allocations: 25.7 kB / 0.5164 GB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.0919, allocations: 0 / 0.5164 GB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-06/0.09191, allocations: 0 / 0.5164 GB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.09191, allocations: 0 / 0.5164 GB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.09193, allocations: 4 kB / 0.5164 GB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001125/0.09205, allocations: 157.5 kB / 0.5165 GB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.382e-05/0.09209, allocations: 30.55 kB / 0.5166 GB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.088e-05/0.09211, allocations: 4.859 kB / 0.5166 GB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-06/0.09212, allocations: 0 / 0.5166 GB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.09216, allocations: 56.27 kB / 0.5166 GB, free: 1.234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.09217, allocations: 0 / 0.5166 GB, free: 1.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001303/0.0923, allocations: 63.45 kB / 0.5167 GB, free: 1.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.09235, allocations: 81.11 kB / 0.5168 GB, free: 1.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.2e-05/0.0924, allocations: 97.98 kB / 0.5169 GB, free: 0.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.09241, allocations: 25.7 kB / 0.5169 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.056e-05/0.09244, allocations: 80.14 kB / 0.517 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.09246, allocations: 0 / 0.517 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.09247, allocations: 0 / 0.517 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.808e-05/0.09257, allocations: 314.8 kB / 0.5173 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.252e-06/0.09258, allocations: 0 / 0.5173 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-06/0.09259, allocations: 4 kB / 0.5173 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.282e-05/0.09262, allocations: 29.69 kB / 0.5173 GB, free: 500 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.09263, allocations: 4.062 kB / 0.5173 GB, free: 496 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.148e-05/0.09269, allocations: 67.36 kB / 0.5174 GB, free: 416 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.09272, allocations: 29.7 kB / 0.5174 GB, free: 380 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.09273, allocations: 0 / 0.5174 GB, free: 380 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.09275, allocations: 0 / 0.5174 GB, free: 380 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.653e-06/0.09276, allocations: 8 kB / 0.5174 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.09276, allocations: 0 / 0.5174 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.356e-05/0.09278, allocations: 0 / 0.5174 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.09279, allocations: 0 / 0.5174 GB, free: 372 kB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.628e-05/0.09287, allocations: 143.6 kB / 0.5175 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.09289, allocations: 3.953 kB / 0.5175 GB, free: 208 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.407e-06/0.0929, allocations: 11.02 kB / 0.5176 GB, free: 200 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.09291, allocations: 0 / 0.5176 GB, free: 200 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.09292, allocations: 3.938 kB / 0.5176 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-06/0.09292, allocations: 0 / 0.5176 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1721/0.265, allocations: 149.7 kB / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.2651, allocations: 0 / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.783e-06/0.2651, allocations: 0 / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.2651, allocations: 3.781 kB / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.2651, allocations: 5.703 kB / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2651, allocations: 0 / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2651, allocations: 0 / 0.5177 GB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.2653, allocations: 87.72 kB / 0.5178 GB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.908e-05/0.2653, allocations: 81.34 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.2653, allocations: 5.484 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.41e-05/0.2654, allocations: 0.6562 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.2654, allocations: 2.234 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.2654, allocations: 0.8125 kB / 0.5179 GB, free: 11.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.448e-05/0.2654, allocations: 75.8 kB / 0.5179 GB, free: 11.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2654, allocations: 0 / 0.5179 GB, free: 11.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002404/0.2657, allocations: 22.23 kB / 0.518 GB, free: 11.36 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003884/0.2661, allocations: 202.5 kB / 0.5182 GB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.633e-05/0.2662, allocations: 58.58 kB / 0.5182 GB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2662, allocations: 0.6875 kB / 0.5182 GB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.087e-05/0.2662, allocations: 56.59 kB / 0.5183 GB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.2663, allocations: 7.844 kB / 0.5183 GB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001569/0.2665, allocations: 101.8 kB / 0.5184 GB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.434e-05/0.2666, allocations: 0.6721 MB / 0.519 GB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.2666, allocations: 8.094 kB / 0.519 GB, free: 10.31 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2666, allocations: 2.156 kB / 0.519 GB, free: 10.31 MB / 346.7 MB Notification: Performance of Templates: time 0.002272/0.2689, allocations: 0.7604 MB / 0.5198 GB, free: 10.24 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches