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.001778/0.001778, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.002223/0.002223, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.46/1.46, allocations: 230.6 MB / 258.3 MB, free: 7.961 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.2256/0.2256, allocations: 44.91 MB / 359.6 MB, free: 6.273 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.00213/0.00213, allocations: 63.91 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2991, allocations: 65.47 MB / 0.5578 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001703/0.3008, allocations: 486.4 kB / 0.5582 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005862/0.3013, allocations: 229.2 kB / 0.5585 GB, free: 7.012 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.3014, allocations: 0 / 0.5585 GB, free: 7.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.16e-05/0.3014, allocations: 1.344 kB / 0.5585 GB, free: 7.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.3014, allocations: 0 / 0.5585 GB, free: 7.012 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.0002767/0.3017, allocations: 45.58 kB / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.617e-05/0.3017, allocations: 2.312 kB / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.3017, allocations: 1.188 kB / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.394e-05/0.3017, allocations: 0 / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.3018, allocations: 1 kB / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.26e-06/0.3018, allocations: 0 / 0.5585 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.3019, allocations: 54.45 kB / 0.5586 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.3019, allocations: 8.984 kB / 0.5586 GB, free: 6.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.954e-05/0.3019, allocations: 4.922 kB / 0.5586 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.3021, allocations: 45.78 kB / 0.5586 GB, free: 6.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3021, allocations: 3.938 kB / 0.5586 GB, free: 6.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3021, allocations: 0 / 0.5586 GB, free: 6.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.3021, allocations: 0 / 0.5586 GB, free: 6.914 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.0003439/0.3024, allocations: 278.1 kB / 0.5589 GB, free: 6.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3025, allocations: 12.03 kB / 0.5589 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.354e-05/0.3025, allocations: 192 / 0.5589 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.988e-05/0.3025, allocations: 34.75 kB / 0.5589 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.19e-05/0.3025, allocations: 0.9375 kB / 0.5589 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.729e-05/0.3026, allocations: 106.5 kB / 0.559 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.3026, allocations: 4.375 kB / 0.559 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-06/0.3026, allocations: 4.312 kB / 0.559 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.446e-05/0.3027, allocations: 38 kB / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3027, allocations: 0 / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.3027, allocations: 0 / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.3027, allocations: 0 / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.3027, allocations: 3.938 kB / 0.5591 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.3029, allocations: 124.8 kB / 0.5592 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.811e-05/0.3029, allocations: 14.58 kB / 0.5592 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.3029, allocations: 4.859 kB / 0.5592 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-06/0.3029, allocations: 3.984 kB / 0.5592 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/0.303, allocations: 64.3 kB / 0.5593 GB, free: 6.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.303, allocations: 0 / 0.5593 GB, free: 6.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001652/0.3031, allocations: 71.34 kB / 0.5594 GB, free: 6.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.3032, allocations: 81.05 kB / 0.5594 GB, free: 5.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.317e-05/0.3033, allocations: 93.81 kB / 0.5595 GB, free: 5.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3033, allocations: 29.69 kB / 0.5595 GB, free: 5.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.3033, allocations: 80.14 kB / 0.5596 GB, free: 5.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.3033, allocations: 0 / 0.5596 GB, free: 5.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.3034, allocations: 13.72 kB / 0.5596 GB, free: 5.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3035, allocations: 314.8 kB / 0.5599 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.3035, allocations: 4.125 kB / 0.5599 GB, free: 5.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.3035, allocations: 4 kB / 0.5599 GB, free: 5.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.802e-05/0.3036, allocations: 56.27 kB / 0.56 GB, free: 5.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3036, allocations: 0 / 0.56 GB, free: 5.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.577e-05/0.3036, allocations: 67.33 kB / 0.5601 GB, free: 5.203 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.3037, allocations: 37.64 kB / 0.5601 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.3037, allocations: 0 / 0.5601 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3037, allocations: 0 / 0.5601 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.3037, allocations: 96 / 0.5601 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.3037, allocations: 4 kB / 0.5601 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.3037, allocations: 0 / 0.5601 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.3037, allocations: 0 / 0.5601 GB, free: 5.156 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.587e-05/0.3038, allocations: 143.5 kB / 0.5602 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-06/0.3038, allocations: 3.938 kB / 0.5602 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.516e-06/0.3038, allocations: 3 kB / 0.5602 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3038, allocations: 0 / 0.5602 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3038, allocations: 4 kB / 0.5602 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.3038, allocations: 0 / 0.5602 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.517e-05/0.3039, allocations: 116.8 kB / 0.5604 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3039, allocations: 0 / 0.5604 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-06/0.3039, allocations: 3.984 kB / 0.5604 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3039, allocations: 3.938 kB / 0.5604 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.304, allocations: 7.938 kB / 0.5604 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.304, allocations: 0 / 0.5604 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.304, allocations: 0 / 0.5604 GB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.3041, allocations: 98.77 kB / 0.5605 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-06/0.3041, allocations: 7.969 kB / 0.5605 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.3041, allocations: 7.938 kB / 0.5605 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.687e-06/0.3041, allocations: 0 / 0.5605 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.3041, allocations: 11.94 kB / 0.5605 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3041, allocations: 0 / 0.5605 GB, free: 4.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.196e-05/0.3041, allocations: 75.28 kB / 0.5606 GB, free: 4.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3041, allocations: 0 / 0.5606 GB, free: 4.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.3044, allocations: 15.94 kB / 0.5606 GB, free: 4.578 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.0007392/0.3051, allocations: 0.7101 MB / 0.5613 GB, free: 3.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.389e-05/0.3052, allocations: 59.41 kB / 0.5613 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3052, allocations: 0 / 0.5613 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.3052, allocations: 59.39 kB / 0.5614 GB, free: 3.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.3054, allocations: 4 kB / 0.5614 GB, free: 3.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.3057, allocations: 118.8 kB / 0.5615 GB, free: 3.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.306, allocations: 0.6768 MB / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.049e-06/0.306, allocations: 0 / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.502e-05/0.306, allocations: 7.438 kB / 0.5622 GB, free: 2.848 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.306, allocations: 0 / 0.5622 GB, free: 2.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.3262, allocations: 1.559 MB / 0.5637 GB, free: 1.434 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.83, allocations: 15.28 kB / 0.5637 GB, free: 1.422 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.749860466981772]