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.001524/0.001524, allocations: 197.7 kB / 16.79 MB, free: 5.039 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.5 MB / 244.1 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007825/0.0007823, allocations: 104.6 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3124/0.3124, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002655/0.0002655, allocations: 11.98 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3047, allocations: 62.95 MB / 0.5165 GB, free: 37.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.4114, allocations: 86.58 MB / 0.601 GB, free: 2.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.4116, allocations: 59.97 kB / 0.6011 GB, free: 2.762 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003258/0.4149, allocations: 1.393 MB / 0.6024 GB, free: 1.367 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4149, allocations: 8 kB / 0.6024 GB, free: 1.359 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.4149, allocations: 0 / 0.6024 GB, free: 1.359 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.0002789/0.4152, allocations: 349.3 kB / 0.6028 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.4153, allocations: 12.03 kB / 0.6028 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.4153, allocations: 4.922 kB / 0.6028 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.908e-05/0.4154, allocations: 160.4 kB / 0.6029 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.4154, allocations: 384 / 0.6029 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.4154, allocations: 384 / 0.6029 GB, free: 0.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.148e-05/0.4155, allocations: 34.27 kB / 0.603 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.4155, allocations: 192 / 0.603 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.4155, allocations: 3.938 kB / 0.603 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.4156, allocations: 0 / 0.603 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.913e-05/0.4156, allocations: 3.938 kB / 0.603 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000117/0.4157, allocations: 149.7 kB / 0.6031 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.842e-05/0.4157, allocations: 18.58 kB / 0.6031 GB, free: 492 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.37e-05/0.4158, allocations: 8.953 kB / 0.6031 GB, free: 480 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.256e-06/0.4158, allocations: 4 kB / 0.6031 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.4158, allocations: 60.2 kB / 0.6032 GB, free: 400 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.4158, allocations: 0 / 0.6032 GB, free: 400 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001512/0.416, allocations: 71.27 kB / 0.6033 GB, free: 316 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.416, allocations: 85.05 kB / 0.6034 GB, free: 212 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.909e-05/0.4161, allocations: 93.77 kB / 0.6034 GB, free: 108 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.4161, allocations: 25.7 kB / 0.6035 GB, free: 76 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.4161, allocations: 80.14 kB / 0.6035 GB, free: 15.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.4162, allocations: 8.125 kB / 0.6036 GB, free: 15.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.4162, allocations: 0 / 0.6036 GB, free: 15.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.4163, allocations: 310.8 kB / 0.6038 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.873e-06/0.4163, allocations: 0 / 0.6038 GB, free: 15.67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.591e-06/0.4163, allocations: 3.984 kB / 0.6039 GB, free: 15.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.391e-05/0.4163, allocations: 60.27 kB / 0.6039 GB, free: 15.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4164, allocations: 0 / 0.6039 GB, free: 15.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.938e-05/0.4164, allocations: 67.34 kB / 0.604 GB, free: 15.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.4164, allocations: 33.8 kB / 0.604 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4165, allocations: 0 / 0.604 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4165, allocations: 11.92 kB / 0.604 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.4165, allocations: 0 / 0.604 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.4165, allocations: 3.984 kB / 0.604 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.104e-05/0.4165, allocations: 0 / 0.604 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.4165, allocations: 0 / 0.604 GB, free: 15.46 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 6.905e-05/0.4166, allocations: 135.5 kB / 0.6042 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.081e-06/0.4166, allocations: 0 / 0.6042 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.487e-05/0.4166, allocations: 14.66 kB / 0.6042 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.4166, allocations: 0 / 0.6042 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.4166, allocations: 0 / 0.6042 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.4167, allocations: 0 / 0.6042 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.977e-05/0.4167, allocations: 153.7 kB / 0.6043 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.4167, allocations: 0 / 0.6043 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4167, allocations: 0 / 0.6043 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.4168, allocations: 0 / 0.6043 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.4168, allocations: 7.938 kB / 0.6043 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.4168, allocations: 0 / 0.6043 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4168, allocations: 0 / 0.6043 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.584e-05/0.4169, allocations: 98.77 kB / 0.6044 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.4169, allocations: 77.11 kB / 0.6045 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.4169, allocations: 7.938 kB / 0.6045 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-06/0.4169, allocations: 0 / 0.6045 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.448e-05/0.417, allocations: 3.938 kB / 0.6045 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.417, allocations: 0 / 0.6045 GB, free: 14.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.312e-05/0.417, allocations: 79.27 kB / 0.6046 GB, free: 14.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.417, allocations: 7.969 kB / 0.6046 GB, free: 14.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001875/0.4172, allocations: 20 kB / 0.6046 GB, free: 14.76 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.0003756/0.4176, allocations: 198.9 kB / 0.6048 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 7.623e-05/0.4177, allocations: 55.41 kB / 0.6048 GB, free: 14.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4177, allocations: 4 kB / 0.6048 GB, free: 14.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.002e-05/0.4177, allocations: 55.34 kB / 0.6049 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.4178, allocations: 13.36 kB / 0.6049 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001575/0.418, allocations: 104.4 kB / 0.605 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.4182, allocations: 0.6731 MB / 0.6057 GB, free: 13.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.937e-06/0.4182, allocations: 7.438 kB / 0.6057 GB, free: 13.61 MB / 426.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4182, allocations: 0 / 0.6057 GB, free: 13.61 MB / 426.7 MB Notification: Performance of Templates: time 0.001895/0.4201, allocations: 0.7463 MB / 0.6064 GB, free: 12.87 MB / 426.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/jenkins1/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