Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 79.7 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8573/0.8573, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2226/0.2226, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.093e-06/1.093e-06, allocations: 0 / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.766e-06/9.859e-06, allocations: 3.266 kB / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0008779/0.0008878, allocations: 495.2 kB / 440 MB, free: 3.781 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003859/0.001274, allocations: 215.6 kB / 440.2 MB, free: 3.57 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.001293, allocations: 0 / 440.2 MB, free: 3.57 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.001308, allocations: 0 / 440.2 MB, free: 3.57 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.001314, allocations: 4 kB / 440.3 MB, free: 3.566 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002594/0.001574, allocations: 47.7 kB / 440.3 MB, free: 3.52 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.781e-05/0.001622, allocations: 4 kB / 440.3 MB, free: 3.516 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.001657, allocations: 3.984 kB / 440.3 MB, free: 3.512 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.457e-05/0.001682, allocations: 4 kB / 440.3 MB, free: 3.508 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.178e-05/0.001703, allocations: 4 kB / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-06/0.00171, allocations: 0 / 440.3 MB, free: 3.504 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.619e-05/0.001806, allocations: 47.89 kB / 440.4 MB, free: 3.457 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.001817, allocations: 0 / 440.4 MB, free: 3.457 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.8e-05/0.001835, allocations: 4 kB / 440.4 MB, free: 3.453 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.65e-05/0.001931, allocations: 51.86 kB / 440.4 MB, free: 3.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.001933, allocations: 4 kB / 440.4 MB, free: 3.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.001934, allocations: 0 / 440.4 MB, free: 3.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.001937, allocations: 0 / 440.4 MB, free: 3.398 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.0002385/0.002176, allocations: 279.9 kB / 440.7 MB, free: 3.086 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.002212, allocations: 8.031 kB / 440.7 MB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.268e-05/0.002234, allocations: 34.75 kB / 440.7 MB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.223e-05/0.002256, allocations: 4.938 kB / 440.7 MB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.935e-05/0.002306, allocations: 105.7 kB / 440.8 MB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-06/0.002315, allocations: 384 / 440.8 MB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.002322, allocations: 4.375 kB / 440.8 MB, free: 2.898 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.808e-05/0.0024, allocations: 59.95 kB / 440.9 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.002406, allocations: 192 / 440.9 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.002413, allocations: 384 / 440.9 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.00242, allocations: 8.125 kB / 440.9 MB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.84e-05/0.002449, allocations: 29.69 kB / 440.9 MB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001067/0.002555, allocations: 112.8 kB / 441.1 MB, free: 2.633 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.42e-05/0.00261, allocations: 56.23 kB / 441.1 MB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.238e-05/0.002632, allocations: 34.56 kB / 441.1 MB, free: 2.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.00264, allocations: 4.062 kB / 441.1 MB, free: 2.516 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.002675, allocations: 56.27 kB / 441.2 MB, free: 2.445 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.002676, allocations: 4 kB / 441.2 MB, free: 2.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.002844, allocations: 118.8 kB / 441.3 MB, free: 2.301 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.002881, allocations: 81.05 kB / 441.4 MB, free: 2.203 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.928e-05/0.00291, allocations: 93.81 kB / 441.5 MB, free: 2.102 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.002919, allocations: 33.64 kB / 441.5 MB, free: 2.062 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.875e-05/0.002938, allocations: 80.14 kB / 441.6 MB, free: 1.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.002953, allocations: 0 / 441.6 MB, free: 1.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.188e-05/0.002975, allocations: 9.719 kB / 441.6 MB, free: 1.965 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.321e-05/0.003048, allocations: 318.8 kB / 441.9 MB, free: 1.645 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.564e-05/0.003063, allocations: 25.7 kB / 441.9 MB, free: 1.613 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.222e-05/0.003076, allocations: 33.81 kB / 442 MB, free: 1.574 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.637e-05/0.003112, allocations: 60.27 kB / 442 MB, free: 1.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.003114, allocations: 0 / 442 MB, free: 1.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.699e-05/0.003161, allocations: 89.11 kB / 442.1 MB, free: 1.395 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.003183, allocations: 37.69 kB / 442.2 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.003187, allocations: 0 / 442.2 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.003199, allocations: 0 / 442.2 MB, free: 1.352 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.0032, allocations: 3.938 kB / 442.2 MB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.003206, allocations: 3.938 kB / 442.2 MB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-06/0.003216, allocations: 3.938 kB / 442.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.003222, allocations: 4.094 kB / 442.2 MB, free: 1.336 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 5.683e-05/0.003279, allocations: 135.5 kB / 442.3 MB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-06/0.003282, allocations: 0 / 442.3 MB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-06/0.003291, allocations: 3 kB / 442.3 MB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.003293, allocations: 8 kB / 442.3 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.003299, allocations: 11.86 kB / 442.3 MB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.003301, allocations: 0 / 442.3 MB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.203e-05/0.003353, allocations: 112.8 kB / 442.4 MB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.003354, allocations: 0 / 442.4 MB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.003354, allocations: 0 / 442.4 MB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.61e-07/0.003355, allocations: 8 kB / 442.5 MB, free: 1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.003361, allocations: 0 / 442.5 MB, free: 1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.003362, allocations: 0 / 442.5 MB, free: 1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.003363, allocations: 3.938 kB / 442.5 MB, free: 0.9961 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.519e-05/0.003429, allocations: 116.5 kB / 442.6 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-06/0.003432, allocations: 0 / 442.6 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.003444, allocations: 11.94 kB / 442.6 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.539e-06/0.003448, allocations: 0 / 442.6 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.003462, allocations: 7.922 kB / 442.6 MB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-06/0.003463, allocations: 0 / 442.6 MB, free: 0.832 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.861e-05/0.003482, allocations: 75.31 kB / 442.7 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003482, allocations: 4 kB / 442.7 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001359/0.003618, allocations: 15.94 kB / 442.7 MB, free: 0.7383 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.145/0.1486, allocations: 0.7527 MB / 443.4 MB, free: 46.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.1488, allocations: 115.5 kB / 443.5 MB, free: 45.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1488, allocations: 0 / 443.5 MB, free: 45.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-05/0.1488, allocations: 85.86 kB / 443.6 MB, free: 45.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001075/0.1489, allocations: 6.656 kB / 443.6 MB, free: 45.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.1492, allocations: 138 kB / 443.8 MB, free: 45.69 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.325e-05/0.1492, allocations: 55.67 kB / 443.8 MB, free: 45.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.97e-06/0.1492, allocations: 0 / 443.8 MB, free: 45.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.1492, allocations: 8.5 kB / 443.8 MB, free: 45.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1492, allocations: 0 / 443.8 MB, free: 45.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01437/0.1636, allocations: 2.08 MB / 445.9 MB, free: 44.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.651/6.815, allocations: 13.98 kB / 445.9 MB, free: 44.72 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.654490099288523]