Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001299/0.001299, allocations: 124.5 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001899/0.001899, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.548/1.548, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2348/0.2348, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 68.08 kB / 0.4909 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.115, allocations: 65.99 MB / 0.5553 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001832/0.1168, allocations: 489 kB / 0.5558 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006209/0.1175, allocations: 219.9 kB / 0.556 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.1175, allocations: 0 / 0.556 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.148e-05/0.1175, allocations: 0 / 0.556 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.899e-06/0.1175, allocations: 4 kB / 0.556 GB, free: 5.176 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.0003496/0.1179, allocations: 47.83 kB / 0.5561 GB, free: 5.129 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.835e-05/0.1179, allocations: 8 kB / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.5e-05/0.1179, allocations: 0 / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.373e-05/0.118, allocations: 0 / 0.5561 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.375e-05/0.118, allocations: 3.984 kB / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-06/0.118, allocations: 0 / 0.5561 GB, free: 5.117 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.1181, allocations: 51.95 kB / 0.5561 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-06/0.1181, allocations: 0 / 0.5561 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.165e-05/0.1182, allocations: 0 / 0.5561 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1183, allocations: 47.88 kB / 0.5562 GB, free: 5.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1183, allocations: 0 / 0.5562 GB, free: 5.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1183, allocations: 4 kB / 0.5562 GB, free: 5.016 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1183, allocations: 3.938 kB / 0.5562 GB, free: 5.012 MB / 414.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.0003918/0.1187, allocations: 357.1 kB / 0.5565 GB, free: 4.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1187, allocations: 8.031 kB / 0.5565 GB, free: 4.598 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.402e-05/0.1188, allocations: 30.75 kB / 0.5566 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.387e-05/0.1188, allocations: 0.9375 kB / 0.5566 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.1189, allocations: 164.4 kB / 0.5567 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.119, allocations: 384 / 0.5567 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.119, allocations: 384 / 0.5567 GB, free: 4.359 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.1191, allocations: 38.23 kB / 0.5568 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1191, allocations: 7.938 kB / 0.5568 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-06/0.1191, allocations: 0 / 0.5568 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1191, allocations: 0 / 0.5568 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.843e-05/0.1191, allocations: 0 / 0.5568 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.1193, allocations: 149.6 kB / 0.5569 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.986e-05/0.1193, allocations: 18.61 kB / 0.5569 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.1193, allocations: 8.844 kB / 0.5569 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.1193, allocations: 4 kB / 0.5569 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.72e-05/0.1194, allocations: 64.27 kB / 0.557 GB, free: 3.992 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1194, allocations: 0 / 0.557 GB, free: 3.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001869/0.1196, allocations: 71.28 kB / 0.5571 GB, free: 3.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.1197, allocations: 77.11 kB / 0.5571 GB, free: 3.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.366e-05/0.1197, allocations: 101.7 kB / 0.5572 GB, free: 3.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.1197, allocations: 25.7 kB / 0.5573 GB, free: 3.676 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.626e-05/0.1198, allocations: 84.27 kB / 0.5573 GB, free: 3.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.1198, allocations: 0 / 0.5573 GB, free: 3.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.1198, allocations: 13.72 kB / 0.5574 GB, free: 3.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1199, allocations: 314.8 kB / 0.5577 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.177e-06/0.1199, allocations: 0 / 0.5577 GB, free: 3.254 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.751e-06/0.12, allocations: 0 / 0.5577 GB, free: 3.254 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.936e-05/0.12, allocations: 60.27 kB / 0.5577 GB, free: 3.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.12, allocations: 0 / 0.5577 GB, free: 3.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.259e-05/0.1201, allocations: 71.39 kB / 0.5578 GB, free: 3.098 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.1201, allocations: 33.7 kB / 0.5578 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1201, allocations: 7.938 kB / 0.5578 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1202, allocations: 0 / 0.5578 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1202, allocations: 0 / 0.5578 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1202, allocations: 3.984 kB / 0.5578 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.518e-05/0.1202, allocations: 0 / 0.5578 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1202, allocations: 0 / 0.5578 GB, free: 3.047 MB / 414.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.713e-05/0.1203, allocations: 141.7 kB / 0.558 GB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.717e-06/0.1203, allocations: 4.031 kB / 0.558 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.1203, allocations: 7.062 kB / 0.558 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1203, allocations: 0 / 0.558 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1203, allocations: 0 / 0.558 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1203, allocations: 7.984 kB / 0.558 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.1204, allocations: 145.7 kB / 0.5581 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1204, allocations: 3.984 kB / 0.5581 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1204, allocations: 0 / 0.5581 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1204, allocations: 0 / 0.5581 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.066e-06/0.1204, allocations: 3.938 kB / 0.5581 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1204, allocations: 4 kB / 0.5581 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1204, allocations: 4 kB / 0.5581 GB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.1205, allocations: 90.77 kB / 0.5582 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.1206, allocations: 81.11 kB / 0.5583 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1206, allocations: 3.938 kB / 0.5583 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-06/0.1206, allocations: 0 / 0.5583 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.739e-05/0.1206, allocations: 4 kB / 0.5583 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1206, allocations: 3.938 kB / 0.5583 GB, free: 2.449 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.524e-05/0.1207, allocations: 80.97 kB / 0.5584 GB, free: 2.371 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1207, allocations: 7.938 kB / 0.5584 GB, free: 2.363 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.1209, allocations: 15.94 kB / 0.5584 GB, free: 2.348 MB / 414.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.0008008/0.1217, allocations: 0.7064 MB / 0.5591 GB, free: 1.637 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.1218, allocations: 67.33 kB / 0.5592 GB, free: 1.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1218, allocations: 4.062 kB / 0.5592 GB, free: 1.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.111e-05/0.1218, allocations: 55.41 kB / 0.5592 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.122, allocations: 0 / 0.5592 GB, free: 1.488 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003535/0.1223, allocations: 122.6 kB / 0.5593 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1227, allocations: 0.669 MB / 0.56 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.204e-06/0.1227, allocations: 0 / 0.56 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.1227, allocations: 7.438 kB / 0.56 GB, free: 0.625 MB / 414.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1227, allocations: 0 / 0.56 GB, free: 0.625 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.1465, allocations: 1.407 MB / 0.5614 GB, free: 15.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.304/8.45, allocations: 0 / 0.5614 GB, free: 15.29 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 11.301409908104688]