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.001132/0.001132, allocations: 97.02 kB / 16.02 MB, free: 84 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.001409/0.001409, allocations: 179.7 kB / 16.92 MB, free: 6.68 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.766/1.766, allocations: 205.4 MB / 223.1 MB, free: 5.516 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.3709/0.3709, allocations: 43.57 MB / 315 MB, free: 9.059 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.000566/0.0005662, allocations: 16 kB / 384.6 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1346, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005568/0.1352, allocations: 228.4 kB / 443.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005966/0.1358, allocations: 194.9 kB / 443.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.05e-05/0.1358, allocations: 0 / 443.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.478e-06/0.1359, allocations: 0 / 443.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.188e-06/0.1359, allocations: 0 / 443.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.1361, allocations: 39.91 kB / 443.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.427e-05/0.1361, allocations: 3.984 kB / 443.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.779e-05/0.1362, allocations: 0 / 443.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.636e-05/0.1362, allocations: 4 kB / 443.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.117e-05/0.1362, allocations: 4 kB / 443.9 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.1362, allocations: 4 kB / 443.9 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.1363, allocations: 47.95 kB / 444 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.1364, allocations: 0 / 444 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.396e-05/0.1364, allocations: 29.64 kB / 444 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.1367, allocations: 51.86 kB / 444 MB, free: 12.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1367, allocations: 4 kB / 444 MB, free: 12.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1367, allocations: 3.938 kB / 444 MB, free: 12.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.1367, allocations: 0 / 444 MB, free: 12.33 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.0002951/0.137, allocations: 341.3 kB / 444.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.137, allocations: 12.03 kB / 444.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.1371, allocations: 4.938 kB / 444.4 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.649e-05/0.1372, allocations: 160.4 kB / 444.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.1372, allocations: 384 / 444.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-06/0.1372, allocations: 384 / 444.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.578e-05/0.1373, allocations: 34.27 kB / 444.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.1373, allocations: 192 / 444.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1373, allocations: 7.922 kB / 444.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.1373, allocations: 0 / 444.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.849e-05/0.1374, allocations: 0 / 444.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.1375, allocations: 157.6 kB / 444.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.556e-05/0.1375, allocations: 14.58 kB / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.11e-05/0.1375, allocations: 4.859 kB / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.1375, allocations: 4.094 kB / 444.8 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.1376, allocations: 60.27 kB / 444.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.284e-06/0.1376, allocations: 3.984 kB / 444.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001526/0.1378, allocations: 79.17 kB / 444.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.1378, allocations: 77.11 kB / 445 MB, free: 11.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.599e-05/0.1379, allocations: 89.86 kB / 445.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.1379, allocations: 25.7 kB / 445.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.207e-05/0.1379, allocations: 80.14 kB / 445.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.1379, allocations: 8 kB / 445.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.138, allocations: 9.719 kB / 445.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.895e-05/0.1381, allocations: 314.8 kB / 445.5 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-06/0.1381, allocations: 4.125 kB / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.958e-06/0.1381, allocations: 0 / 445.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.976e-05/0.1381, allocations: 60.27 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1381, allocations: 0 / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.126e-05/0.1382, allocations: 67.34 kB / 445.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.1382, allocations: 33.69 kB / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1382, allocations: 0 / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.1383, allocations: 7.938 kB / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.462e-06/0.1383, allocations: 0 / 445.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1383, allocations: 4.094 kB / 445.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.044e-05/0.1383, allocations: 4 kB / 445.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.1383, allocations: 0 / 445.7 MB, free: 10.42 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 7.711e-05/0.1384, allocations: 135.5 kB / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-06/0.1384, allocations: 0 / 445.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.108e-05/0.1384, allocations: 7.062 kB / 445.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1385, allocations: 3.938 kB / 445.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1385, allocations: 3.984 kB / 445.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1385, allocations: 0 / 445.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.228e-05/0.1386, allocations: 150 kB / 446 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1386, allocations: 0 / 446 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1386, allocations: 0 / 446 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1386, allocations: 0 / 446 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.1386, allocations: 7.875 kB / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1386, allocations: 0 / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1386, allocations: 4 kB / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.1387, allocations: 94.77 kB / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.1388, allocations: 81.14 kB / 446.2 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.1388, allocations: 7.938 kB / 446.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-06/0.1388, allocations: 3.984 kB / 446.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.686e-05/0.1388, allocations: 0 / 446.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-06/0.1388, allocations: 0 / 446.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.346e-05/0.1389, allocations: 75.28 kB / 446.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1389, allocations: 0 / 446.2 MB, free: 9.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.1391, allocations: 16 kB / 446.3 MB, free: 9.73 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.0004752/0.1396, allocations: 207.7 kB / 446.5 MB, free: 9.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.1397, allocations: 59.41 kB / 446.5 MB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1397, allocations: 4.062 kB / 446.5 MB, free: 9.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.081e-05/0.1398, allocations: 63.33 kB / 446.6 MB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.1399, allocations: 0 / 446.6 MB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.1402, allocations: 74.77 kB / 446.7 MB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1405, allocations: 0.6692 MB / 447.3 MB, free: 8.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.252e-06/0.1405, allocations: 3.938 kB / 447.3 MB, free: 8.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.1405, allocations: 11.44 kB / 447.3 MB, free: 8.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1405, allocations: 0 / 447.3 MB, free: 8.57 MB / 382.1 MB Notification: Performance of Templates: time 0.003708/0.1442, allocations: 0.5709 MB / 447.9 MB, free: 8 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