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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 46.09 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 82.03 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1157, allocations: 62.44 MB / 480.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001902/0.1176, allocations: 490.4 kB / 481.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005777/0.1182, allocations: 202.1 kB / 481.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.352e-05/0.1183, allocations: 0 / 481.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.422e-05/0.1183, allocations: 0 / 481.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.1183, allocations: 0 / 481.4 MB, free: 4.633 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.1187, allocations: 55.77 kB / 481.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.698e-05/0.1187, allocations: 3.938 kB / 481.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.554e-05/0.1188, allocations: 4 kB / 481.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.585e-05/0.1188, allocations: 0 / 481.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.408e-05/0.1188, allocations: 3.984 kB / 481.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.1189, allocations: 0 / 481.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.119, allocations: 55.95 kB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-06/0.119, allocations: 0 / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.1191, allocations: 3.984 kB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.1192, allocations: 35.95 kB / 481.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1192, allocations: 0 / 481.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1192, allocations: 4 kB / 481.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1192, allocations: 0 / 481.5 MB, free: 4.469 MB / 350.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.0003622/0.1196, allocations: 357.2 kB / 481.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1196, allocations: 12.03 kB / 481.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.1197, allocations: 0.9375 kB / 481.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1198, allocations: 160.4 kB / 482 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.1198, allocations: 384 / 482 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.1198, allocations: 384 / 482 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.1199, allocations: 42.19 kB / 482.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.1199, allocations: 4.188 kB / 482.1 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.12, allocations: 3.938 kB / 482.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.12, allocations: 0 / 482.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.771e-05/0.12, allocations: 0 / 482.1 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.1201, allocations: 145.7 kB / 482.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.973e-05/0.1202, allocations: 14.58 kB / 482.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.028e-05/0.1202, allocations: 16.88 kB / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.729e-06/0.1202, allocations: 0 / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.1203, allocations: 64.27 kB / 482.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1203, allocations: 0 / 482.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001734/0.1205, allocations: 63.34 kB / 482.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.985e-05/0.1205, allocations: 77.11 kB / 482.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.253e-05/0.1206, allocations: 93.84 kB / 482.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1206, allocations: 25.7 kB / 482.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.1206, allocations: 80.14 kB / 482.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.1207, allocations: 8.125 kB / 482.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.1207, allocations: 13.72 kB / 482.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1208, allocations: 310.8 kB / 483 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.33e-05/0.1208, allocations: 4 kB / 483 MB, free: 2.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.593e-06/0.1209, allocations: 3.938 kB / 483 MB, free: 2.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.904e-05/0.1209, allocations: 60.27 kB / 483.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1209, allocations: 3.938 kB / 483.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.786e-05/0.121, allocations: 67.45 kB / 483.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.1211, allocations: 33.73 kB / 483.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1211, allocations: 0 / 483.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1211, allocations: 11.88 kB / 483.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-06/0.1211, allocations: 0 / 483.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1211, allocations: 0 / 483.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.684e-05/0.1211, allocations: 0 / 483.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.1211, allocations: 4 kB / 483.2 MB, free: 2.547 MB / 350.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.926e-05/0.1212, allocations: 135.5 kB / 483.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.1213, allocations: 7.938 kB / 483.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.129e-05/0.1213, allocations: 11.06 kB / 483.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1213, allocations: 0 / 483.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1213, allocations: 0 / 483.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1213, allocations: 0 / 483.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.761e-05/0.1214, allocations: 145.7 kB / 483.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1214, allocations: 3.984 kB / 483.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-06/0.1214, allocations: 4 kB / 483.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1214, allocations: 0 / 483.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.1214, allocations: 3.938 kB / 483.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1214, allocations: 0 / 483.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1214, allocations: 0 / 483.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.65e-05/0.1215, allocations: 94.83 kB / 483.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.069e-05/0.1216, allocations: 77.11 kB / 483.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1216, allocations: 3.938 kB / 483.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.1216, allocations: 0 / 483.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.1216, allocations: 7.984 kB / 483.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1216, allocations: 0 / 483.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.135e-05/0.1217, allocations: 79.31 kB / 483.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1217, allocations: 3.938 kB / 483.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.1219, allocations: 16 kB / 483.8 MB, free: 1.859 MB / 350.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.0004158/0.1223, allocations: 206.7 kB / 484 MB, free: 1.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1225, allocations: 63.39 kB / 484 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1225, allocations: 3.938 kB / 484 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.78e-05/0.1225, allocations: 55.41 kB / 484.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1226, allocations: 4.125 kB / 484.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002035/0.1228, allocations: 110.5 kB / 484.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.1231, allocations: 0.6729 MB / 484.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.135e-05/0.1231, allocations: 7.438 kB / 484.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1231, allocations: 4 kB / 484.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of Templates: time 0.002294/0.1254, allocations: 0.7493 MB / 485.6 MB, free: 15.93 MB / 366.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches