Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.00182/0.00182, allocations: 118.1 kB / 17.13 MB, free: 5.777 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.002314/0.002314, allocations: 191.7 kB / 20.08 MB, free: 2.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 207.6 MB / 230.5 MB, free: 3.957 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3382/0.3382, allocations: 44.23 MB / 326.5 MB, free: 6.812 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002142/0.002142, allocations: 75.88 kB / 462.2 MB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2582, allocations: 60.98 MB / 0.5109 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001512/0.2597, allocations: 0.4978 MB / 0.5114 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004919/0.2602, allocations: 207 kB / 0.5116 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.2602, allocations: 0 / 0.5116 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.2602, allocations: 5.469 kB / 0.5116 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.2602, allocations: 0 / 0.5116 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.2605, allocations: 42.08 kB / 0.5116 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.627e-05/0.2605, allocations: 9.594 kB / 0.5116 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.2606, allocations: 3.984 kB / 0.5116 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.818e-05/0.2606, allocations: 1.406 kB / 0.5116 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.145e-05/0.2606, allocations: 3.938 kB / 0.5116 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-06/0.2606, allocations: 5.375 kB / 0.5116 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.2607, allocations: 45.3 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.2607, allocations: 1.031 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.702e-05/0.2607, allocations: 1.031 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.2609, allocations: 44.5 kB / 0.5117 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2609, allocations: 0 / 0.5117 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2609, allocations: 1.094 kB / 0.5117 GB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.2609, allocations: 0 / 0.5117 GB, free: 12.62 MB / 382.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.0002596/0.2611, allocations: 354.9 kB / 0.5121 GB, free: 12.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.2612, allocations: 14.05 kB / 0.5121 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.817e-05/0.2612, allocations: 30.75 kB / 0.5121 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.2612, allocations: 5.984 kB / 0.5121 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.431e-05/0.2613, allocations: 168.3 kB / 0.5123 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.2613, allocations: 5.594 kB / 0.5123 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.2613, allocations: 384 / 0.5123 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.955e-05/0.2614, allocations: 32.58 kB / 0.5123 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2614, allocations: 5.094 kB / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.2614, allocations: 0 / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/0.2614, allocations: 0 / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.639e-05/0.2614, allocations: 6.109 kB / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.345e-05/0.2615, allocations: 150.7 kB / 0.5125 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.61e-05/0.2615, allocations: 20.58 kB / 0.5125 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.188e-05/0.2615, allocations: 5.984 kB / 0.5125 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.2615, allocations: 0 / 0.5125 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.2616, allocations: 57.42 kB / 0.5125 GB, free: 11.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.2616, allocations: 3.938 kB / 0.5125 GB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.2617, allocations: 67.52 kB / 0.5126 GB, free: 11.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.2617, allocations: 82.67 kB / 0.5127 GB, free: 11.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.88e-05/0.2617, allocations: 93.92 kB / 0.5128 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-06/0.2617, allocations: 29.7 kB / 0.5128 GB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-06/0.2618, allocations: 80.14 kB / 0.5129 GB, free: 11.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.2618, allocations: 1.438 kB / 0.5129 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.2618, allocations: 11.03 kB / 0.5129 GB, free: 11.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.792e-05/0.2618, allocations: 312.3 kB / 0.5132 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.2618, allocations: 0 / 0.5132 GB, free: 10.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-06/0.2618, allocations: 1.344 kB / 0.5132 GB, free: 10.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.403e-05/0.2619, allocations: 76.22 kB / 0.5133 GB, free: 10.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2619, allocations: 0 / 0.5133 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.807e-05/0.2619, allocations: 57.84 kB / 0.5133 GB, free: 10.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.262, allocations: 31.52 kB / 0.5134 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.262, allocations: 4.938 kB / 0.5134 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.262, allocations: 0 / 0.5134 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.764e-06/0.262, allocations: 3.984 kB / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.262, allocations: 5.141 kB / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.262, allocations: 0 / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.262, allocations: 1.188 kB / 0.5134 GB, free: 10.72 MB / 382.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 4.818e-05/0.262, allocations: 141.9 kB / 0.5135 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.674e-06/0.2621, allocations: 1.219 kB / 0.5135 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.047e-06/0.2621, allocations: 11 kB / 0.5135 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.2621, allocations: 1.344 kB / 0.5135 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2621, allocations: 0 / 0.5135 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2621, allocations: 0 / 0.5135 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.954e-05/0.2621, allocations: 147 kB / 0.5137 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.2621, allocations: 1.188 kB / 0.5137 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.2621, allocations: 4 kB / 0.5137 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-06/0.2621, allocations: 7.938 kB / 0.5137 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.2621, allocations: 4.969 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2621, allocations: 0.875 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2621, allocations: 0 / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.63e-05/0.2622, allocations: 90.42 kB / 0.5138 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.2622, allocations: 77.11 kB / 0.5138 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.2622, allocations: 4.938 kB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.2622, allocations: 5.156 kB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-05/0.2623, allocations: 0 / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.2623, allocations: 1.125 kB / 0.5138 GB, free: 10.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.278e-05/0.2623, allocations: 76.31 kB / 0.5139 GB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-08/0.2623, allocations: 0 / 0.5139 GB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.2625, allocations: 23.23 kB / 0.5139 GB, free: 10.05 MB / 382.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.0005485/0.2631, allocations: 0.7281 MB / 0.5147 GB, free: 9.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.825e-05/0.2631, allocations: 65.03 kB / 0.5147 GB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2631, allocations: 0 / 0.5147 GB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.2632, allocations: 58.59 kB / 0.5148 GB, free: 9.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.2633, allocations: 8.875 kB / 0.5148 GB, free: 9.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002642/0.2636, allocations: 126.1 kB / 0.5149 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.415e-05/0.2636, allocations: 0.6711 MB / 0.5156 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.912e-06/0.2637, allocations: 0 / 0.5156 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.136e-05/0.2637, allocations: 9.344 kB / 0.5156 GB, free: 8.363 MB / 382.1 MB Notification: Performance of SimCode: time 5.1e-07/0.2637, allocations: 4.125 kB / 0.5156 GB, free: 8.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.2867, allocations: 1.394 MB / 0.5169 GB, free: 7.449 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/8.248, allocations: 10.55 kB / 0.5169 GB, free: 7.441 MB / 382.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.071853071916848]