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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 119 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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.2235/0.2235, allocations: 44.92 MB / 349.6 MB, free: 1.703 MB / 270.1 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001905/0.001905, allocations: 66.3 kB / 491.8 MB, free: 30.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1182, allocations: 64.26 MB / 0.543 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001649/0.1199, allocations: 487.6 kB / 0.5434 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005629/0.1205, allocations: 219.7 kB / 0.5437 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.459e-05/0.1205, allocations: 0 / 0.5437 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.073e-05/0.1205, allocations: 0 / 0.5437 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.149e-06/0.1205, allocations: 0 / 0.5437 GB, free: 3.426 MB / 398.1 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.0002768/0.1208, allocations: 51.83 kB / 0.5437 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.846e-05/0.1208, allocations: 3.938 kB / 0.5437 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.48e-05/0.1209, allocations: 0 / 0.5437 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.391e-05/0.1209, allocations: 0 / 0.5437 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.173e-05/0.1209, allocations: 4 kB / 0.5437 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.43e-06/0.1209, allocations: 0 / 0.5437 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.121, allocations: 51.94 kB / 0.5438 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.392e-06/0.121, allocations: 0 / 0.5438 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.988e-05/0.1211, allocations: 4 kB / 0.5438 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.1212, allocations: 44.16 kB / 0.5438 GB, free: 3.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1212, allocations: 0 / 0.5438 GB, free: 3.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1212, allocations: 4 kB / 0.5438 GB, free: 3.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1212, allocations: 0 / 0.5438 GB, free: 3.266 MB / 398.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.0003859/0.1216, allocations: 357.1 kB / 0.5442 GB, free: 2.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1216, allocations: 8.031 kB / 0.5442 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.1216, allocations: 34.69 kB / 0.5442 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.392e-05/0.1217, allocations: 4.938 kB / 0.5442 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.1218, allocations: 160.4 kB / 0.5443 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.1218, allocations: 384 / 0.5443 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.1218, allocations: 384 / 0.5443 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.861e-05/0.1219, allocations: 38.25 kB / 0.5444 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1219, allocations: 7.875 kB / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.1219, allocations: 0 / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1219, allocations: 0 / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.484e-05/0.1219, allocations: 0 / 0.5444 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.1221, allocations: 149.7 kB / 0.5445 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.1221, allocations: 18.52 kB / 0.5446 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.1221, allocations: 8.844 kB / 0.5446 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-06/0.1222, allocations: 4 kB / 0.5446 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.398e-05/0.1222, allocations: 60.36 kB / 0.5446 GB, free: 2.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1222, allocations: 0 / 0.5446 GB, free: 2.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001795/0.1224, allocations: 71.33 kB / 0.5447 GB, free: 2.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.1225, allocations: 81.05 kB / 0.5448 GB, free: 2.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.673e-05/0.1225, allocations: 93.84 kB / 0.5449 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1225, allocations: 25.7 kB / 0.5449 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.065e-05/0.1226, allocations: 84.27 kB / 0.545 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.1226, allocations: 0 / 0.545 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.1226, allocations: 13.72 kB / 0.545 GB, free: 1.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1228, allocations: 314.8 kB / 0.5453 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.041e-05/0.1228, allocations: 0 / 0.5453 GB, free: 1.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.127e-06/0.1228, allocations: 4 kB / 0.5453 GB, free: 1.508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.346e-05/0.1228, allocations: 56.27 kB / 0.5453 GB, free: 1.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1228, allocations: 0 / 0.5453 GB, free: 1.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.571e-05/0.1229, allocations: 67.45 kB / 0.5454 GB, free: 1.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.276e-05/0.123, allocations: 41.64 kB / 0.5454 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.123, allocations: 3.938 kB / 0.5454 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.123, allocations: 3.938 kB / 0.5454 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.835e-06/0.123, allocations: 4 kB / 0.5454 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.123, allocations: 0 / 0.5454 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.123, allocations: 0 / 0.5454 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.123, allocations: 0 / 0.5454 GB, free: 1.301 MB / 398.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.844e-05/0.1231, allocations: 139.6 kB / 0.5456 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.1231, allocations: 11.94 kB / 0.5456 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.399e-05/0.1231, allocations: 7.062 kB / 0.5456 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1231, allocations: 0 / 0.5456 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1231, allocations: 4 kB / 0.5456 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1231, allocations: 0 / 0.5456 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1233, allocations: 141.7 kB / 0.5457 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1233, allocations: 3.984 kB / 0.5457 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1233, allocations: 0 / 0.5457 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.1233, allocations: 0 / 0.5457 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1233, allocations: 7.938 kB / 0.5458 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1233, allocations: 4 kB / 0.5458 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1233, allocations: 3.938 kB / 0.5458 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001101/0.1234, allocations: 94.77 kB / 0.5458 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.1234, allocations: 77.11 kB / 0.5459 GB, free: 0.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.1234, allocations: 3.938 kB / 0.5459 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.815e-06/0.1235, allocations: 0 / 0.5459 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.1235, allocations: 4 kB / 0.5459 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1235, allocations: 8.031 kB / 0.5459 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.85e-05/0.1235, allocations: 75.28 kB / 0.546 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1235, allocations: 0 / 0.546 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1237, allocations: 15.94 kB / 0.546 GB, free: 0.6016 MB / 398.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.0008136/0.1245, allocations: 0.7304 MB / 0.5467 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.1246, allocations: 67.33 kB / 0.5468 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1246, allocations: 3.938 kB / 0.5468 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.009e-05/0.1247, allocations: 55.41 kB / 0.5469 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.1248, allocations: 4 kB / 0.5469 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003163/0.1251, allocations: 118.6 kB / 0.547 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1254, allocations: 0.6727 MB / 0.5476 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.122e-06/0.1254, allocations: 0 / 0.5476 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.364e-05/0.1255, allocations: 15.56 kB / 0.5476 GB, free: 14.85 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1255, allocations: 0 / 0.5476 GB, free: 14.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.1493, allocations: 1.408 MB / 0.549 GB, free: 13.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.308, allocations: 7.875 kB / 0.549 GB, free: 13.51 MB / 414.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.160648776218295]