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.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.001785/0.001785, allocations: 110 kB / 19.69 MB, free: 2.203 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.00226/0.00226, allocations: 221.6 kB / 23 MB, free: 5.043 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.434/1.434, allocations: 207.6 MB / 233.8 MB, free: 9.977 MB / 190.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.2237/0.2237, allocations: 44.24 MB / 330.3 MB, free: 9.508 MB / 270.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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 79.88 kB / 467.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1226, allocations: 61.04 MB / 0.5161 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001721/0.1244, allocations: 0.4942 MB / 0.5166 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005753/0.1249, allocations: 217.1 kB / 0.5168 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.168e-05/0.125, allocations: 0 / 0.5168 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.125, allocations: 0 / 0.5168 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.632e-06/0.125, allocations: 4 kB / 0.5168 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1253, allocations: 39.84 kB / 0.5169 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.31e-05/0.1253, allocations: 7.984 kB / 0.5169 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.384e-05/0.1254, allocations: 4 kB / 0.5169 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.908e-05/0.1254, allocations: 4 kB / 0.5169 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.236e-05/0.1254, allocations: 3.984 kB / 0.5169 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.171e-06/0.1254, allocations: 0 / 0.5169 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1256, allocations: 47.95 kB / 0.5169 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.663e-06/0.1256, allocations: 0 / 0.5169 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.913e-05/0.1256, allocations: 0 / 0.5169 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.1257, allocations: 51.81 kB / 0.517 GB, free: 6.488 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1257, allocations: 0 / 0.517 GB, free: 6.488 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1257, allocations: 7.938 kB / 0.517 GB, free: 6.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1257, allocations: 0 / 0.517 GB, free: 6.48 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.0003726/0.1261, allocations: 280 kB / 0.5172 GB, free: 6.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1262, allocations: 8.031 kB / 0.5173 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.887e-05/0.1262, allocations: 34.69 kB / 0.5173 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.1262, allocations: 4.891 kB / 0.5173 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.997e-05/0.1263, allocations: 106.5 kB / 0.5174 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1263, allocations: 384 / 0.5174 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-06/0.1263, allocations: 384 / 0.5174 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.188e-05/0.1264, allocations: 38.23 kB / 0.5174 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1264, allocations: 3.938 kB / 0.5174 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.1264, allocations: 0 / 0.5174 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.1264, allocations: 4 kB / 0.5174 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.659e-05/0.1264, allocations: 0 / 0.5174 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.1266, allocations: 120.8 kB / 0.5175 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.055e-05/0.1266, allocations: 18.52 kB / 0.5176 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.33e-05/0.1266, allocations: 4.859 kB / 0.5176 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.1266, allocations: 3.984 kB / 0.5176 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/0.1267, allocations: 64.3 kB / 0.5176 GB, free: 5.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1267, allocations: 4 kB / 0.5176 GB, free: 5.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001682/0.1268, allocations: 67.34 kB / 0.5177 GB, free: 5.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.1269, allocations: 81.05 kB / 0.5178 GB, free: 5.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.176e-05/0.127, allocations: 89.86 kB / 0.5179 GB, free: 5.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.127, allocations: 29.69 kB / 0.5179 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.127, allocations: 80.14 kB / 0.518 GB, free: 5.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.127, allocations: 0 / 0.518 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.1271, allocations: 13.72 kB / 0.518 GB, free: 5.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1272, allocations: 319 kB / 0.5183 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-06/0.1272, allocations: 0 / 0.5183 GB, free: 4.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.045e-06/0.1272, allocations: 4 kB / 0.5183 GB, free: 4.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.065e-05/0.1273, allocations: 56.27 kB / 0.5183 GB, free: 4.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1273, allocations: 4 kB / 0.5184 GB, free: 4.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.095e-05/0.1274, allocations: 63.33 kB / 0.5184 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.1274, allocations: 33.7 kB / 0.5184 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1274, allocations: 8.031 kB / 0.5185 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.1274, allocations: 4 kB / 0.5185 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1274, allocations: 0 / 0.5185 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1274, allocations: 0 / 0.5185 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.1274, allocations: 4 kB / 0.5185 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.1274, allocations: 0 / 0.5185 GB, free: 4.715 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.66e-05/0.1275, allocations: 139.5 kB / 0.5186 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.1275, allocations: 0 / 0.5186 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.666e-06/0.1276, allocations: 10.88 kB / 0.5186 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1276, allocations: 0 / 0.5186 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1276, allocations: 8 kB / 0.5186 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1276, allocations: 0 / 0.5186 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.1277, allocations: 112.8 kB / 0.5187 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1277, allocations: 0 / 0.5187 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.594e-06/0.1277, allocations: 3.984 kB / 0.5187 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.1277, allocations: 4 kB / 0.5187 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1277, allocations: 3.938 kB / 0.5187 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1277, allocations: 0 / 0.5187 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1277, allocations: 3.984 kB / 0.5187 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.1278, allocations: 94.78 kB / 0.5188 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.453e-05/0.1278, allocations: 11.92 kB / 0.5188 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1278, allocations: 3.938 kB / 0.5188 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.151e-05/0.1278, allocations: 4 kB / 0.5188 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.253e-05/0.1279, allocations: 4 kB / 0.5188 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1279, allocations: 0 / 0.5188 GB, free: 4.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.473e-05/0.1279, allocations: 75.28 kB / 0.5189 GB, free: 4.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1279, allocations: 0 / 0.5189 GB, free: 4.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.1281, allocations: 23.91 kB / 0.5189 GB, free: 4.141 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.0008491/0.129, allocations: 0.7159 MB / 0.5196 GB, free: 3.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.1291, allocations: 63.34 kB / 0.5197 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1291, allocations: 0 / 0.5197 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.851e-05/0.1291, allocations: 59.39 kB / 0.5198 GB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.1293, allocations: 6.5 kB / 0.5198 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000306/0.1296, allocations: 122.6 kB / 0.5199 GB, free: 3.098 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1299, allocations: 0.669 MB / 0.5205 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.1299, allocations: 0 / 0.5205 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.1299, allocations: 7.438 kB / 0.5205 GB, free: 2.395 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1299, allocations: 4 kB / 0.5205 GB, free: 2.391 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.1577, allocations: 1.516 MB / 0.522 GB, free: 0.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.14, allocations: 4.062 kB / 0.522 GB, free: 0.8711 MB / 398.1 MB " [Timeout remaining time 649] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.90520537411794]