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.001765/0.001765, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.001461/0.001461, allocations: 212.5 kB / 24.51 MB, free: 3.941 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.77 MB / 206.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.2191/0.2191, allocations: 44.94 MB / 359.6 MB, free: 6.039 MB / 286.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.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002852/0.002852, allocations: 56.19 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3309, allocations: 65.47 MB / 0.5577 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001574/0.3325, allocations: 491.1 kB / 0.5582 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005386/0.333, allocations: 219 kB / 0.5584 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.932e-05/0.333, allocations: 1.219 kB / 0.5584 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.093e-05/0.3331, allocations: 0 / 0.5584 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.3331, allocations: 0 / 0.5584 GB, free: 6.801 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.0002735/0.3333, allocations: 50.02 kB / 0.5584 GB, free: 6.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.257e-05/0.3334, allocations: 5.453 kB / 0.5584 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.428e-05/0.3334, allocations: 1.125 kB / 0.5584 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.358e-05/0.3334, allocations: 1.438 kB / 0.5584 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.3335, allocations: 7.938 kB / 0.5584 GB, free: 6.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-06/0.3335, allocations: 1.25 kB / 0.5584 GB, free: 6.754 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.3336, allocations: 49.42 kB / 0.5585 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.542e-06/0.3336, allocations: 4 kB / 0.5585 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.703e-05/0.3336, allocations: 0 / 0.5585 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.3337, allocations: 43.73 kB / 0.5585 GB, free: 6.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3337, allocations: 0 / 0.5585 GB, free: 6.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3337, allocations: 0 / 0.5585 GB, free: 6.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.3337, allocations: 0 / 0.5585 GB, free: 6.68 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.000307/0.334, allocations: 282 kB / 0.5588 GB, free: 6.367 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.3341, allocations: 8.031 kB / 0.5588 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.092e-05/0.3341, allocations: 8.125 kB / 0.5588 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.846e-05/0.3341, allocations: 38.67 kB / 0.5589 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.3341, allocations: 4.938 kB / 0.5589 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.978e-05/0.3342, allocations: 106.5 kB / 0.559 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.3342, allocations: 4.312 kB / 0.559 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.657e-06/0.3342, allocations: 384 / 0.559 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.608e-05/0.3343, allocations: 63.72 kB / 0.559 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.3343, allocations: 0 / 0.559 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-06/0.3343, allocations: 0 / 0.559 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.3343, allocations: 0 / 0.559 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.009e-05/0.3344, allocations: 33.7 kB / 0.5591 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001209/0.3345, allocations: 116.8 kB / 0.5592 GB, free: 5.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.169e-05/0.3346, allocations: 48.25 kB / 0.5592 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.122e-05/0.3346, allocations: 38.55 kB / 0.5593 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.113e-06/0.3346, allocations: 0 / 0.5593 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.3346, allocations: 64.27 kB / 0.5593 GB, free: 5.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3346, allocations: 0 / 0.5593 GB, free: 5.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001819/0.3348, allocations: 114.8 kB / 0.5594 GB, free: 5.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.3349, allocations: 85.05 kB / 0.5595 GB, free: 5.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/0.3349, allocations: 93.81 kB / 0.5596 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.3349, allocations: 29.83 kB / 0.5596 GB, free: 5.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.335, allocations: 80.14 kB / 0.5597 GB, free: 5.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.335, allocations: 4 kB / 0.5597 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.335, allocations: 13.7 kB / 0.5597 GB, free: 5.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3352, allocations: 310.8 kB / 0.56 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.209e-05/0.3352, allocations: 29.7 kB / 0.56 GB, free: 4.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.955e-05/0.3352, allocations: 25.7 kB / 0.5601 GB, free: 4.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.333e-05/0.3353, allocations: 64.27 kB / 0.5601 GB, free: 4.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3353, allocations: 0 / 0.5601 GB, free: 4.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.501e-05/0.3354, allocations: 93.16 kB / 0.5602 GB, free: 4.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.3354, allocations: 37.58 kB / 0.5603 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.3354, allocations: 0 / 0.5603 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.3354, allocations: 4 kB / 0.5603 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3354, allocations: 0 / 0.5603 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.3354, allocations: 0 / 0.5603 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.413e-05/0.3354, allocations: 0 / 0.5603 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.3354, allocations: 0 / 0.5603 GB, free: 4.617 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.881e-05/0.3355, allocations: 143.5 kB / 0.5604 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.3355, allocations: 3.938 kB / 0.5604 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.387e-06/0.3355, allocations: 3 kB / 0.5604 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3355, allocations: 7.969 kB / 0.5604 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3355, allocations: 0 / 0.5604 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3356, allocations: 7.938 kB / 0.5604 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.06e-05/0.3356, allocations: 112.8 kB / 0.5605 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3356, allocations: 0 / 0.5605 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.544e-06/0.3356, allocations: 3.984 kB / 0.5605 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3356, allocations: 3.938 kB / 0.5605 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.3357, allocations: 4 kB / 0.5605 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.3357, allocations: 0 / 0.5605 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.3357, allocations: 0 / 0.5605 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.3358, allocations: 124.5 kB / 0.5607 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-06/0.3358, allocations: 4 kB / 0.5607 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.3358, allocations: 3.938 kB / 0.5607 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.3358, allocations: 4 kB / 0.5607 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.3358, allocations: 4 kB / 0.5607 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3358, allocations: 0 / 0.5607 GB, free: 4.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.532e-05/0.3359, allocations: 75.28 kB / 0.5607 GB, free: 4.031 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3359, allocations: 0 / 0.5607 GB, free: 4.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.3361, allocations: 15.94 kB / 0.5608 GB, free: 4.016 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.0007732/0.3369, allocations: 0.75 MB / 0.5615 GB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001263/0.337, allocations: 122.8 kB / 0.5616 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.337, allocations: 0 / 0.5616 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.269e-05/0.337, allocations: 77.11 kB / 0.5617 GB, free: 3.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.3372, allocations: 4 kB / 0.5617 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003148/0.3375, allocations: 152.3 kB / 0.5618 GB, free: 2.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.554e-05/0.3375, allocations: 51.36 kB / 0.5619 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.248e-06/0.3375, allocations: 0 / 0.5619 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.494e-05/0.3375, allocations: 11.44 kB / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3375, allocations: 0 / 0.5619 GB, free: 2.742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.3574, allocations: 1.59 MB / 0.5634 GB, free: 1.293 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.81, allocations: 7.922 kB / 0.5634 GB, free: 1.285 MB / 398.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 14.735980833997019]