Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 204.7 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.1 MB / 222.6 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4089/0.4089, allocations: 43.49 MB / 313.5 MB, free: 8.188 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 66.56 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1445, allocations: 57.77 MB / 439.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001771/0.1463, allocations: 0.558 MB / 440.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005007/0.1468, allocations: 206.8 kB / 440.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.508e-06/0.1469, allocations: 0 / 440.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.1469, allocations: 0 / 440.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.817e-06/0.1469, allocations: 0 / 440.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.1471, allocations: 43.91 kB / 440.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.315e-05/0.1471, allocations: 4 kB / 440.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.203e-05/0.1472, allocations: 0 / 440.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.1472, allocations: 7.984 kB / 440.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.43e-05/0.1472, allocations: 3.984 kB / 440.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.939e-06/0.1472, allocations: 0 / 440.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.1473, allocations: 47.95 kB / 440.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-06/0.1473, allocations: 0 / 440.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.1474, allocations: 7.938 kB / 440.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1475, allocations: 39.95 kB / 440.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1475, allocations: 0 / 440.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1475, allocations: 4 kB / 440.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1475, allocations: 0 / 440.7 MB, free: 13.73 MB / 382.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.000327/0.1478, allocations: 345.3 kB / 441.1 MB, free: 13.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1479, allocations: 11.97 kB / 441.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/0.1479, allocations: 4.938 kB / 441.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.71e-05/0.148, allocations: 160.4 kB / 441.2 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.148, allocations: 8.359 kB / 441.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.1481, allocations: 384 / 441.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.561e-05/0.1482, allocations: 30.2 kB / 441.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.1482, allocations: 4.188 kB / 441.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1482, allocations: 7.938 kB / 441.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1482, allocations: 0 / 441.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.887e-05/0.1482, allocations: 0 / 441.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1484, allocations: 145.6 kB / 441.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.535e-05/0.1484, allocations: 26.59 kB / 441.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.1484, allocations: 4.859 kB / 441.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-06/0.1484, allocations: 3.938 kB / 441.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/0.1485, allocations: 68.31 kB / 441.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.1485, allocations: 0 / 441.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001704/0.1487, allocations: 63.25 kB / 441.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.1487, allocations: 85.09 kB / 441.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.036e-05/0.1488, allocations: 93.86 kB / 441.8 MB, free: 12.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.1488, allocations: 25.7 kB / 441.8 MB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.1488, allocations: 80.14 kB / 441.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.1489, allocations: 4.125 kB / 441.9 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.1489, allocations: 13.72 kB / 441.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.149, allocations: 310.8 kB / 442.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-06/0.149, allocations: 0 / 442.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.149, allocations: 3.938 kB / 442.2 MB, free: 12.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.809e-05/0.1491, allocations: 64.27 kB / 442.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1491, allocations: 0 / 442.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.968e-05/0.1492, allocations: 63.45 kB / 442.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.1492, allocations: 33.73 kB / 442.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1492, allocations: 0 / 442.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.1492, allocations: 7.938 kB / 442.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.304e-06/0.1492, allocations: 4 kB / 442.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1492, allocations: 0 / 442.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.393e-05/0.1493, allocations: 0 / 442.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1493, allocations: 0 / 442.4 MB, free: 11.81 MB / 382.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.16e-05/0.1494, allocations: 143.5 kB / 442.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.1494, allocations: 0 / 442.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.1494, allocations: 15 kB / 442.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.1494, allocations: 0 / 442.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1494, allocations: 0 / 442.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1494, allocations: 0 / 442.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.929e-05/0.1495, allocations: 157.9 kB / 442.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1495, allocations: 0 / 442.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1495, allocations: 0 / 442.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1495, allocations: 0 / 442.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1496, allocations: 7.875 kB / 442.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.1496, allocations: 0 / 442.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1496, allocations: 4 kB / 442.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.568e-05/0.1497, allocations: 90.83 kB / 442.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.1497, allocations: 77.11 kB / 442.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.1497, allocations: 7.938 kB / 442.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.1497, allocations: 0 / 442.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.095e-05/0.1497, allocations: 0 / 442.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-06/0.1498, allocations: 3.984 kB / 442.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.658e-05/0.1498, allocations: 75.31 kB / 442.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.252e-06/0.1498, allocations: 4 kB / 442.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.15, allocations: 27.92 kB / 443 MB, free: 11.1 MB / 382.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.0003829/0.1504, allocations: 204.6 kB / 443.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.945e-05/0.1505, allocations: 59.39 kB / 443.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1505, allocations: 0 / 443.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.832e-05/0.1505, allocations: 55.41 kB / 443.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.1507, allocations: 4 kB / 443.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001661/0.1508, allocations: 78.7 kB / 443.4 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.1511, allocations: 0.6811 MB / 444 MB, free: 9.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.693e-06/0.1511, allocations: 0 / 444 MB, free: 9.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-06/0.1511, allocations: 7.438 kB / 444 MB, free: 9.953 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1511, allocations: 0 / 444 MB, free: 9.953 MB / 382.1 MB Notification: Performance of Templates: time 0.002703/0.1538, allocations: 0.5747 MB / 444.6 MB, free: 9.379 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches