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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008023/0.0008023, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007635/0.0007635, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8729/0.8729, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2414/0.2414, allocations: 34.23 MB / 294.8 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 442.1 MB, free: 1.629 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.434e-05/1.571e-05, allocations: 6.219 kB / 442.1 MB, free: 1.621 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.000913/0.0009287, allocations: 499.8 kB / 442.6 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003872/0.001316, allocations: 215.5 kB / 442.8 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.629e-05/0.001332, allocations: 4 kB / 442.8 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.214e-05/0.001344, allocations: 0 / 442.8 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.00135, allocations: 0 / 442.8 MB, free: 0.9219 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002292/0.001579, allocations: 47.7 kB / 442.9 MB, free: 0.875 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.445e-05/0.001623, allocations: 4 kB / 442.9 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.039e-05/0.001654, allocations: 4 kB / 442.9 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.261e-05/0.001676, allocations: 4 kB / 442.9 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.209e-05/0.001698, allocations: 3.984 kB / 442.9 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.892e-06/0.001704, allocations: 0 / 442.9 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.085e-05/0.001795, allocations: 47.89 kB / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-06/0.001801, allocations: 0 / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.761e-05/0.001819, allocations: 4 kB / 442.9 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.678e-05/0.001915, allocations: 55.86 kB / 443 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.513e-06/0.001917, allocations: 0 / 443 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.001918, allocations: 0 / 443 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.001922, allocations: 0 / 443 MB, free: 0.7539 MB / 410.7 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.0002172/0.002139, allocations: 280 kB / 443.3 MB, free: 452 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.002172, allocations: 8.031 kB / 443.3 MB, free: 444 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.069e-05/0.002192, allocations: 34.69 kB / 443.3 MB, free: 400 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.212e-05/0.002214, allocations: 4.938 kB / 443.3 MB, free: 396 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.304e-05/0.002268, allocations: 109.7 kB / 443.4 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.002277, allocations: 384 / 443.4 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-06/0.002285, allocations: 384 / 443.4 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.544e-05/0.00237, allocations: 59.95 kB / 443.5 MB, free: 188 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.002376, allocations: 192 / 443.5 MB, free: 188 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.002385, allocations: 4.359 kB / 443.5 MB, free: 184 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.002392, allocations: 8.125 kB / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.597e-05/0.002418, allocations: 29.7 kB / 443.5 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1679/0.1703, allocations: 112.8 kB / 443.6 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.828e-05/0.1704, allocations: 46.47 kB / 443.7 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.1704, allocations: 40.22 kB / 443.7 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1705, allocations: 0 / 443.7 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1705, allocations: 60.73 kB / 443.8 MB, free: 44.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.1705, allocations: 0 / 443.8 MB, free: 44.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.1706, allocations: 117.2 kB / 443.9 MB, free: 43.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.1707, allocations: 86.73 kB / 444 MB, free: 43.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.465e-05/0.1707, allocations: 94.72 kB / 444.1 MB, free: 43.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-06/0.1707, allocations: 25.7 kB / 444.1 MB, free: 43.74 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.011e-06/0.1707, allocations: 80.14 kB / 444.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.1707, allocations: 0 / 444.2 MB, free: 43.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.1707, allocations: 15.81 kB / 444.2 MB, free: 43.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.296e-05/0.1708, allocations: 312.8 kB / 444.5 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.1708, allocations: 31.84 kB / 444.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.746e-06/0.1708, allocations: 28.14 kB / 444.5 MB, free: 43.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.777e-05/0.1708, allocations: 62.98 kB / 444.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1708, allocations: 0 / 444.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.48e-05/0.1708, allocations: 89.22 kB / 444.7 MB, free: 43.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1709, allocations: 32.36 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1709, allocations: 2.031 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1709, allocations: 2.906 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.1709, allocations: 1.125 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1709, allocations: 2.688 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.35e-05/0.1709, allocations: 4.406 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.1709, allocations: 0 / 444.7 MB, free: 43.07 MB / 410.7 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 4.018e-05/0.1709, allocations: 144.4 kB / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-06/0.1709, allocations: 4.906 kB / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.358e-06/0.171, allocations: 3 kB / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.171, allocations: 0 / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.171, allocations: 2.953 kB / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.171, allocations: 0 / 444.9 MB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.838e-05/0.171, allocations: 127.9 kB / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-07/0.171, allocations: 0 / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.171, allocations: 3 kB / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.42e-07/0.171, allocations: 0 / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.171, allocations: 2.781 kB / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.5e-07/0.171, allocations: 0 / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.171, allocations: 0 / 445 MB, free: 42.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.479e-05/0.1711, allocations: 118 kB / 445.1 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.14e-06/0.1711, allocations: 2.625 kB / 445.1 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.1711, allocations: 6.844 kB / 445.1 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.48e-06/0.1711, allocations: 1.406 kB / 445.1 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.312e-05/0.1711, allocations: 3.344 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.1711, allocations: 0 / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.885e-06/0.1711, allocations: 75.28 kB / 445.2 MB, free: 42.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1711, allocations: 0 / 445.2 MB, free: 42.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000162/0.1713, allocations: 19.89 kB / 445.2 MB, free: 42.56 MB / 410.7 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.0003543/0.1716, allocations: 0.7491 MB / 446 MB, free: 41.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.03e-05/0.1717, allocations: 114 kB / 446.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1717, allocations: 3.422 kB / 446.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.199e-05/0.1717, allocations: 83.64 kB / 446.2 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.18e-05/0.1718, allocations: 4.312 kB / 446.2 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002117/0.172, allocations: 144.5 kB / 446.3 MB, free: 41.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.179e-05/0.172, allocations: 54.02 kB / 446.4 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.398e-06/0.172, allocations: 0 / 446.4 MB, free: 41.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.255e-05/0.1721, allocations: 11.38 kB / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1721, allocations: 0 / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01524/0.1873, allocations: 2.081 MB / 448.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/7.003, allocations: 4.125 kB / 448.5 MB, free: 40.49 MB / 410.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.850545701570809]