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.001099/0.001099, allocations: 97.09 kB / 15.7 MB, free: 468 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.00156/0.00156, allocations: 172.8 kB / 16.58 MB, free: 5.645 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.729/1.729, allocations: 205.4 MB / 222.8 MB, free: 5.605 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.3903/0.3903, allocations: 43.58 MB / 314.6 MB, free: 9.078 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.0005253/0.0005253, allocations: 23.94 kB / 384 MB, free: 8.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1331, allocations: 58.86 MB / 442.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009798/0.1341, allocations: 216.5 kB / 443 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008649/0.135, allocations: 191 kB / 443.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.439e-05/0.1351, allocations: 4 kB / 443.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.1351, allocations: 0 / 443.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.316e-05/0.1352, allocations: 3.938 kB / 443.2 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.1357, allocations: 39.89 kB / 443.3 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.769e-05/0.1357, allocations: 0 / 443.3 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.779e-05/0.1358, allocations: 3.938 kB / 443.3 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.098e-05/0.1359, allocations: 8 kB / 443.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.06e-05/0.1359, allocations: 0 / 443.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-06/0.1359, allocations: 0 / 443.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.1362, allocations: 47.94 kB / 443.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.1362, allocations: 0 / 443.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.597e-05/0.1363, allocations: 29.64 kB / 443.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.1364, allocations: 27.97 kB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.1365, allocations: 0 / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1365, allocations: 0 / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1365, allocations: 0 / 443.4 MB, free: 12.7 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.0004532/0.137, allocations: 349.1 kB / 443.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.573e-05/0.137, allocations: 12.03 kB / 443.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.1371, allocations: 0 / 443.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.1372, allocations: 171 kB / 443.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.1373, allocations: 0 / 443.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.1373, allocations: 0 / 443.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.1374, allocations: 33.64 kB / 443.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1375, allocations: 0 / 443.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1375, allocations: 0 / 443.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1375, allocations: 0 / 443.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.115e-05/0.1375, allocations: 8 kB / 443.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.1378, allocations: 149.6 kB / 444.1 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.528e-05/0.1378, allocations: 14.58 kB / 444.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.209e-05/0.1379, allocations: 12.95 kB / 444.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.1379, allocations: 0 / 444.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.001e-05/0.138, allocations: 60.2 kB / 444.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 3.807e-06/0.138, allocations: 4 kB / 444.2 MB, free: 11.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002679/0.1383, allocations: 71.23 kB / 444.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.1383, allocations: 77.11 kB / 444.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.987e-05/0.1384, allocations: 89.86 kB / 444.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.1385, allocations: 29.7 kB / 444.4 MB, free: 11.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.86e-05/0.1385, allocations: 84.14 kB / 444.5 MB, free: 11.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.1385, allocations: 3.984 kB / 444.5 MB, free: 11.33 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.1386, allocations: 0 / 444.5 MB, free: 11.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1387, allocations: 314.9 kB / 444.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.1387, allocations: 4 kB / 444.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.155e-06/0.1388, allocations: 3.938 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.545e-05/0.1388, allocations: 33.64 kB / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1388, allocations: 0 / 444.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000105/0.1389, allocations: 63.39 kB / 444.9 MB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.089e-05/0.139, allocations: 33.7 kB / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.139, allocations: 0 / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1391, allocations: 0 / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.653e-06/0.1391, allocations: 96 / 445 MB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1391, allocations: 8 kB / 445 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.694e-05/0.1391, allocations: 0 / 445 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.1391, allocations: 0 / 445 MB, free: 10.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.1393, allocations: 143.5 kB / 445.1 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.1393, allocations: 4 kB / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.774e-05/0.1393, allocations: 3.125 kB / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1394, allocations: 4 kB / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1394, allocations: 0 / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1394, allocations: 0 / 445.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001436/0.1395, allocations: 157.9 kB / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.1395, allocations: 3.984 kB / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-06/0.1396, allocations: 0 / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1396, allocations: 0 / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1396, allocations: 0 / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.1396, allocations: 3.938 kB / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1396, allocations: 0 / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.1398, allocations: 90.83 kB / 445.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.1398, allocations: 85.09 kB / 445.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.1398, allocations: 0 / 445.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.65e-05/0.1399, allocations: 7.938 kB / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.1399, allocations: 4 kB / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1399, allocations: 0 / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.64e-05/0.14, allocations: 75.28 kB / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.14, allocations: 0 / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003563/0.1403, allocations: 16 kB / 445.6 MB, free: 10.15 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 (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.0005569/0.1409, allocations: 195.6 kB / 445.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.1411, allocations: 79.27 kB / 445.8 MB, free: 9.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1411, allocations: 0 / 445.8 MB, free: 9.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.381e-05/0.1411, allocations: 55.41 kB / 445.9 MB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.1413, allocations: 0 / 445.9 MB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002368/0.1416, allocations: 74.77 kB / 445.9 MB, free: 9.707 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.142, allocations: 0.6731 MB / 446.6 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.135e-05/0.142, allocations: 3.984 kB / 446.6 MB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.315e-05/0.142, allocations: 7.438 kB / 446.6 MB, free: 8.996 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.142, allocations: 0 / 446.6 MB, free: 8.996 MB / 382.1 MB Notification: Performance of Templates: time 0.004492/0.1465, allocations: 0.5587 MB / 447.2 MB, free: 8.438 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