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.001099/0.001099, allocations: 94.69 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 201.3 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 247.5 MB, free: 9.688 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1896/0.1896, allocations: 46.19 MB / 345.9 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002849, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 63.56 MB / 483.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0007016/0.1101, allocations: 209.3 kB / 483.9 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005971/0.1108, allocations: 207.8 kB / 484.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.281e-05/0.1108, allocations: 0 / 484.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.1108, allocations: 4 kB / 484.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.069e-06/0.1108, allocations: 0 / 484.1 MB, free: 3.742 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.0002974/0.1111, allocations: 39.89 kB / 484.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.471e-05/0.1112, allocations: 0 / 484.2 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.554e-05/0.1112, allocations: 7.922 kB / 484.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.1113, allocations: 4 kB / 484.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.468e-05/0.1113, allocations: 0 / 484.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-06/0.1113, allocations: 0 / 484.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.1114, allocations: 51.95 kB / 484.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.1115, allocations: 0 / 484.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.1115, allocations: 33.69 kB / 484.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.1116, allocations: 23.97 kB / 484.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1116, allocations: 0 / 484.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1116, allocations: 3.938 kB / 484.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1116, allocations: 0 / 484.3 MB, free: 3.574 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.0003448/0.112, allocations: 347.6 kB / 484.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1121, allocations: 16.8 kB / 484.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.645e-05/0.1121, allocations: 0.9375 kB / 484.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.1122, allocations: 168.3 kB / 484.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.1122, allocations: 4.375 kB / 484.8 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.1123, allocations: 4.375 kB / 484.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.945e-05/0.1124, allocations: 30.25 kB / 484.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.1124, allocations: 192 / 484.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.1124, allocations: 3.938 kB / 484.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.1124, allocations: 4 kB / 484.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.846e-05/0.1124, allocations: 0 / 484.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.1126, allocations: 145.7 kB / 485 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.386e-05/0.1127, allocations: 26.55 kB / 485 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.165e-05/0.1127, allocations: 12.86 kB / 485 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.1127, allocations: 0 / 485 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/0.1128, allocations: 56.27 kB / 485.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1128, allocations: 0 / 485.1 MB, free: 2.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001878/0.113, allocations: 67.39 kB / 485.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.1131, allocations: 85.23 kB / 485.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.277e-05/0.1131, allocations: 89.86 kB / 485.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.1132, allocations: 25.7 kB / 485.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.25e-05/0.1132, allocations: 84.14 kB / 485.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.1132, allocations: 3.938 kB / 485.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.1133, allocations: 9.719 kB / 485.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1134, allocations: 310.8 kB / 485.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.007e-05/0.1134, allocations: 4 kB / 485.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.455e-06/0.1134, allocations: 3.984 kB / 485.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.034e-05/0.1135, allocations: 64.33 kB / 485.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1135, allocations: 0 / 485.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.595e-05/0.1136, allocations: 63.41 kB / 485.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.977e-05/0.1137, allocations: 29.7 kB / 485.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1137, allocations: 0 / 485.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1137, allocations: 7.922 kB / 485.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.723e-06/0.1137, allocations: 0 / 485.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1137, allocations: 3.938 kB / 485.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1137, allocations: 0 / 485.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.1138, allocations: 8.031 kB / 485.9 MB, free: 1.656 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 9.309e-05/0.1139, allocations: 135.5 kB / 486.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.1139, allocations: 4 kB / 486.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.005e-05/0.1139, allocations: 7.062 kB / 486.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1139, allocations: 3.938 kB / 486.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1139, allocations: 0 / 486.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1139, allocations: 3.984 kB / 486.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.1141, allocations: 145.7 kB / 486.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1141, allocations: 0 / 486.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-06/0.1141, allocations: 8 kB / 486.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1141, allocations: 0 / 486.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.1141, allocations: 7.938 kB / 486.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1141, allocations: 0 / 486.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1141, allocations: 0 / 486.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.1142, allocations: 90.83 kB / 486.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.1143, allocations: 77.11 kB / 486.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.1143, allocations: 3.969 kB / 486.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.1143, allocations: 4 kB / 486.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.429e-05/0.1143, allocations: 7.938 kB / 486.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.1143, allocations: 0 / 486.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.873e-05/0.1144, allocations: 75.28 kB / 486.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1144, allocations: 0 / 486.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1146, allocations: 19.98 kB / 486.5 MB, free: 0.9688 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.000448/0.115, allocations: 201.1 kB / 486.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.1152, allocations: 67.41 kB / 486.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1152, allocations: 0 / 486.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.363e-05/0.1152, allocations: 55.41 kB / 486.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.1153, allocations: 3.25 kB / 486.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001886/0.1155, allocations: 112.3 kB / 486.9 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.1158, allocations: 0.6692 MB / 487.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.283e-05/0.1158, allocations: 7.438 kB / 487.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1158, allocations: 4.062 kB / 487.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Templates: time 0.002296/0.1182, allocations: 0.7534 MB / 488.4 MB, free: 15.04 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