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/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_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/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 200.7 kB / 18.1 MB, free: 3.602 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009032/0.0009032, allocations: 99.08 kB / 297.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3548/0.3548, allocations: 44.83 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3039, allocations: 62.96 MB / 0.5184 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.4047, allocations: 86.57 MB / 0.6029 GB, free: 2.727 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.4049, allocations: 63.97 kB / 0.603 GB, free: 2.668 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003588/0.4086, allocations: 1.398 MB / 0.6044 GB, free: 1.266 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.4086, allocations: 4 kB / 0.6044 GB, free: 1.262 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.4086, allocations: 0 / 0.6044 GB, free: 1.262 MB / 410.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.0003147/0.4089, allocations: 345.2 kB / 0.6047 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.409, allocations: 12.03 kB / 0.6047 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.409, allocations: 0.9375 kB / 0.6047 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.781e-05/0.4091, allocations: 168.4 kB / 0.6049 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.4092, allocations: 384 / 0.6049 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.4092, allocations: 384 / 0.6049 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.944e-05/0.4093, allocations: 30.27 kB / 0.6049 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.4093, allocations: 192 / 0.6049 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.4093, allocations: 3.938 kB / 0.6049 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.4093, allocations: 0 / 0.6049 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.832e-05/0.4093, allocations: 4 kB / 0.6049 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001417/0.4095, allocations: 149.7 kB / 0.6051 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.645e-05/0.4095, allocations: 22.52 kB / 0.6051 GB, free: 392 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.583e-05/0.4096, allocations: 8.953 kB / 0.6051 GB, free: 380 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4096, allocations: 0 / 0.6051 GB, free: 380 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/0.4096, allocations: 56.27 kB / 0.6051 GB, free: 308 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.384e-06/0.4096, allocations: 0 / 0.6051 GB, free: 308 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001849/0.4098, allocations: 83.19 kB / 0.6052 GB, free: 212 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.4099, allocations: 77.23 kB / 0.6053 GB, free: 116 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.949e-05/0.4099, allocations: 97.77 kB / 0.6054 GB, free: 8 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.41, allocations: 25.7 kB / 0.6054 GB, free: 15.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.654e-05/0.41, allocations: 84.08 kB / 0.6055 GB, free: 15.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.41, allocations: 4 kB / 0.6055 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-06/0.41, allocations: 0 / 0.6055 GB, free: 15.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4102, allocations: 314.8 kB / 0.6058 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-06/0.4102, allocations: 0 / 0.6058 GB, free: 15.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.71e-06/0.4102, allocations: 0 / 0.6058 GB, free: 15.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.742e-05/0.4103, allocations: 68.31 kB / 0.6059 GB, free: 15.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4103, allocations: 0 / 0.6059 GB, free: 15.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.263e-05/0.4103, allocations: 63.34 kB / 0.6059 GB, free: 15.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.4104, allocations: 29.7 kB / 0.606 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4104, allocations: 0 / 0.606 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.4104, allocations: 3.938 kB / 0.606 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.734e-06/0.4104, allocations: 4 kB / 0.606 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.4104, allocations: 0 / 0.606 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.4105, allocations: 0 / 0.606 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.4105, allocations: 4.031 kB / 0.606 GB, free: 15.37 MB / 426.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 0.0001038/0.4106, allocations: 143.5 kB / 0.6061 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-06/0.4106, allocations: 0 / 0.6061 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.552e-05/0.4106, allocations: 10.66 kB / 0.6061 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4106, allocations: 0 / 0.6061 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4106, allocations: 4 kB / 0.6061 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4106, allocations: 0 / 0.6061 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.4108, allocations: 149.7 kB / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4108, allocations: 0 / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.4108, allocations: 0 / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4108, allocations: 4 kB / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.4108, allocations: 3.938 kB / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4108, allocations: 0 / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4108, allocations: 0 / 0.6063 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.4109, allocations: 98.75 kB / 0.6064 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.684e-05/0.411, allocations: 77.11 kB / 0.6064 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.411, allocations: 7.938 kB / 0.6064 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-06/0.411, allocations: 7.969 kB / 0.6064 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.4111, allocations: 0 / 0.6064 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.4111, allocations: 0 / 0.6064 GB, free: 14.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.097e-05/0.4111, allocations: 79.28 kB / 0.6065 GB, free: 14.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4111, allocations: 0 / 0.6065 GB, free: 14.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002508/0.4114, allocations: 23.98 kB / 0.6065 GB, free: 14.66 MB / 426.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.0004198/0.4118, allocations: 203.2 kB / 0.6067 GB, free: 14.49 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.244e-05/0.4119, allocations: 63.39 kB / 0.6068 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4119, allocations: 0 / 0.6068 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.996e-05/0.412, allocations: 63.34 kB / 0.6069 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.4121, allocations: 4 kB / 0.6069 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001727/0.4123, allocations: 66.77 kB / 0.6069 GB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.4125, allocations: 0.677 MB / 0.6076 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 9.918e-06/0.4125, allocations: 0 / 0.6076 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.077e-05/0.4126, allocations: 7.438 kB / 0.6076 GB, free: 13.53 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4126, allocations: 128 / 0.6076 GB, free: 13.53 MB / 426.7 MB Notification: Performance of Templates: time 0.002855/0.4154, allocations: 0.5638 MB / 0.6081 GB, free: 12.97 MB / 426.7 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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches