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.001383/0.001383, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001543/0.001543, allocations: 203.9 kB / 23.73 MB, free: 4.379 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.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.2372/0.2372, allocations: 46.96 MB / 360.9 MB, free: 4.027 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.003102/0.003102, allocations: 59.91 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3111, allocations: 66.04 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001572/0.3127, allocations: 487.8 kB / 0.561 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006093/0.3133, allocations: 229.7 kB / 0.5612 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.3133, allocations: 3.938 kB / 0.5613 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.3133, allocations: 0 / 0.5613 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.3133, allocations: 0 / 0.5613 GB, free: 3.512 MB / 398.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.000315/0.3136, allocations: 43.84 kB / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.447e-05/0.3137, allocations: 0 / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.3137, allocations: 0 / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.537e-05/0.3137, allocations: 0 / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.173e-05/0.3138, allocations: 19.91 kB / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-06/0.3138, allocations: 0 / 0.5613 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.3139, allocations: 47.97 kB / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.374e-06/0.3139, allocations: 0 / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.314, allocations: 7.984 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3141, allocations: 39.75 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3141, allocations: 0 / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3141, allocations: 0 / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3141, allocations: 0 / 0.5614 GB, free: 3.359 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.0004043/0.3145, allocations: 281.9 kB / 0.5617 GB, free: 3.047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3146, allocations: 12.03 kB / 0.5617 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.3146, allocations: 34.75 kB / 0.5617 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.734e-05/0.3146, allocations: 0.9375 kB / 0.5617 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.3147, allocations: 106.5 kB / 0.5618 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3147, allocations: 4.375 kB / 0.5618 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.3147, allocations: 384 / 0.5618 GB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.3149, allocations: 55.95 kB / 0.5619 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3149, allocations: 7.938 kB / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.3149, allocations: 0 / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3149, allocations: 0 / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.218e-05/0.3149, allocations: 25.7 kB / 0.5619 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.3151, allocations: 128.8 kB / 0.562 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.637e-05/0.3152, allocations: 44.22 kB / 0.5621 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.802e-05/0.3152, allocations: 38.64 kB / 0.5621 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3152, allocations: 3.984 kB / 0.5621 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.3152, allocations: 56.27 kB / 0.5622 GB, free: 2.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3153, allocations: 0 / 0.5622 GB, free: 2.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002459/0.3155, allocations: 126.7 kB / 0.5623 GB, free: 2.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.3156, allocations: 81.11 kB / 0.5624 GB, free: 2.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.567e-05/0.3156, allocations: 93.81 kB / 0.5625 GB, free: 2.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3157, allocations: 25.7 kB / 0.5625 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/0.3157, allocations: 84.27 kB / 0.5626 GB, free: 1.941 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.3157, allocations: 0 / 0.5626 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/0.3158, allocations: 13.72 kB / 0.5626 GB, free: 1.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.316, allocations: 314.8 kB / 0.5629 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.797e-05/0.316, allocations: 25.7 kB / 0.5629 GB, free: 1.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.35e-05/0.316, allocations: 29.7 kB / 0.5629 GB, free: 1.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.992e-05/0.3161, allocations: 64.25 kB / 0.563 GB, free: 1.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.3161, allocations: 3.938 kB / 0.563 GB, free: 1.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000112/0.3162, allocations: 93.05 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.3162, allocations: 37.78 kB / 0.5631 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3162, allocations: 3.938 kB / 0.5631 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3162, allocations: 3.938 kB / 0.5631 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3162, allocations: 0 / 0.5631 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3163, allocations: 0 / 0.5631 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.09e-05/0.3163, allocations: 4 kB / 0.5631 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.3163, allocations: 0 / 0.5631 GB, free: 1.293 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 0.000126/0.3164, allocations: 131.5 kB / 0.5633 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.3164, allocations: 4 kB / 0.5633 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.587e-05/0.3164, allocations: 6.938 kB / 0.5633 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3164, allocations: 4 kB / 0.5633 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3164, allocations: 0 / 0.5633 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3164, allocations: 0 / 0.5633 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3166, allocations: 124.8 kB / 0.5634 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3166, allocations: 0 / 0.5634 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3166, allocations: 0 / 0.5634 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3166, allocations: 4 kB / 0.5634 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.3166, allocations: 3.938 kB / 0.5634 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.3166, allocations: 0 / 0.5634 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3166, allocations: 0 / 0.5634 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.3167, allocations: 120.5 kB / 0.5635 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.3167, allocations: 8.031 kB / 0.5635 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.3167, allocations: 3.938 kB / 0.5635 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-06/0.3167, allocations: 0 / 0.5635 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.202e-05/0.3168, allocations: 0 / 0.5635 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.3168, allocations: 7.984 kB / 0.5635 GB, free: 0.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.447e-05/0.3168, allocations: 75.28 kB / 0.5636 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3168, allocations: 0 / 0.5636 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.3171, allocations: 15.94 kB / 0.5636 GB, free: 0.7031 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.0008141/0.3179, allocations: 0.755 MB / 0.5644 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.318, allocations: 114.8 kB / 0.5645 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.318, allocations: 0 / 0.5645 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.795e-05/0.3181, allocations: 89.09 kB / 0.5645 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3182, allocations: 0 / 0.5645 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003123/0.3185, allocations: 144.3 kB / 0.5647 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.813e-05/0.3186, allocations: 51.36 kB / 0.5647 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.81e-06/0.3186, allocations: 4 kB / 0.5647 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.487e-05/0.3186, allocations: 7.438 kB / 0.5647 GB, free: 15.43 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3186, allocations: 3.938 kB / 0.5647 GB, free: 15.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.3453, allocations: 1.948 MB / 0.5667 GB, free: 13.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.27, allocations: 4.062 kB / 0.5667 GB, free: 13.61 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.122279461007565]