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.001339/0.001339, allocations: 104.3 kB / 19.7 MB, free: 1.789 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.001984/0.001984, allocations: 214.8 kB / 22.99 MB, free: 4.617 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.463/1.463, allocations: 207.7 MB / 233.8 MB, free: 9.777 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.2176/0.2176, allocations: 44.26 MB / 330.3 MB, free: 9.312 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.002327/0.002327, allocations: 71.89 kB / 467.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1153, allocations: 61.05 MB / 0.5161 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001602/0.1169, allocations: 0.4912 MB / 0.5166 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000576/0.1175, allocations: 209.2 kB / 0.5168 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.357e-05/0.1175, allocations: 0 / 0.5168 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.63e-05/0.1175, allocations: 0 / 0.5168 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.1175, allocations: 0 / 0.5168 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.1178, allocations: 51.77 kB / 0.5169 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.1179, allocations: 0 / 0.5169 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.1179, allocations: 8 kB / 0.5169 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.425e-05/0.1179, allocations: 3.938 kB / 0.5169 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.441e-05/0.118, allocations: 3.984 kB / 0.5169 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.79e-06/0.118, allocations: 0 / 0.5169 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1181, allocations: 51.89 kB / 0.5169 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1181, allocations: 0 / 0.5169 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.712e-05/0.1181, allocations: 0 / 0.5169 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.1182, allocations: 43.89 kB / 0.517 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1182, allocations: 0 / 0.517 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1182, allocations: 0 / 0.517 GB, free: 6.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1183, allocations: 0 / 0.517 GB, free: 6.34 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.0003473/0.1186, allocations: 288 kB / 0.5172 GB, free: 6.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1186, allocations: 8.031 kB / 0.5173 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.899e-05/0.1187, allocations: 30.75 kB / 0.5173 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.423e-05/0.1187, allocations: 4.891 kB / 0.5173 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.974e-05/0.1188, allocations: 110.5 kB / 0.5174 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1188, allocations: 384 / 0.5174 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.1188, allocations: 384 / 0.5174 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.704e-05/0.1189, allocations: 59.95 kB / 0.5175 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1189, allocations: 3.938 kB / 0.5175 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.1189, allocations: 0 / 0.5175 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1189, allocations: 3.984 kB / 0.5175 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.435e-05/0.119, allocations: 33.64 kB / 0.5175 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001468/0.1191, allocations: 124.8 kB / 0.5176 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.023e-05/0.1192, allocations: 44.38 kB / 0.5177 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.784e-05/0.1192, allocations: 30.56 kB / 0.5177 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.784e-06/0.1192, allocations: 0 / 0.5177 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/0.1193, allocations: 56.27 kB / 0.5177 GB, free: 5.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1193, allocations: 4 kB / 0.5177 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002173/0.1195, allocations: 126.7 kB / 0.5179 GB, free: 5.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.1195, allocations: 77.11 kB / 0.5179 GB, free: 5.141 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.715e-05/0.1196, allocations: 93.98 kB / 0.518 GB, free: 5.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1196, allocations: 25.7 kB / 0.518 GB, free: 5.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.723e-05/0.1196, allocations: 80.14 kB / 0.5181 GB, free: 4.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.1197, allocations: 0 / 0.5181 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.1197, allocations: 17.72 kB / 0.5181 GB, free: 4.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1198, allocations: 310.8 kB / 0.5184 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.532e-05/0.1199, allocations: 33.69 kB / 0.5185 GB, free: 4.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.927e-05/0.1199, allocations: 25.7 kB / 0.5185 GB, free: 4.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.885e-05/0.1199, allocations: 60.27 kB / 0.5186 GB, free: 4.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1199, allocations: 0 / 0.5186 GB, free: 4.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.961e-05/0.12, allocations: 101.1 kB / 0.5186 GB, free: 4.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.1201, allocations: 29.7 kB / 0.5187 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1201, allocations: 11.81 kB / 0.5187 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1201, allocations: 0 / 0.5187 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1201, allocations: 0 / 0.5187 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1201, allocations: 4 kB / 0.5187 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.1201, allocations: 0 / 0.5187 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.1201, allocations: 0 / 0.5187 GB, free: 4.277 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.992e-05/0.1202, allocations: 135.5 kB / 0.5188 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/0.1202, allocations: 0 / 0.5188 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.322e-05/0.1202, allocations: 14.95 kB / 0.5188 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1202, allocations: 0 / 0.5188 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1203, allocations: 0 / 0.5188 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1203, allocations: 4 kB / 0.5188 GB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.767e-05/0.1204, allocations: 120.8 kB / 0.519 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1204, allocations: 0 / 0.519 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1204, allocations: 0 / 0.519 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1204, allocations: 0 / 0.519 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.1204, allocations: 3.938 kB / 0.519 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1204, allocations: 0 / 0.519 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1204, allocations: 0 / 0.519 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.1205, allocations: 128.5 kB / 0.5191 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-06/0.1205, allocations: 0 / 0.5191 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.1205, allocations: 7.922 kB / 0.5191 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.1205, allocations: 4 kB / 0.5191 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1205, allocations: 0 / 0.5191 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.1205, allocations: 4 kB / 0.5191 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.426e-05/0.1206, allocations: 75.28 kB / 0.5192 GB, free: 3.703 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1206, allocations: 0 / 0.5192 GB, free: 3.703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1208, allocations: 23.88 kB / 0.5192 GB, free: 3.68 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.0008056/0.1216, allocations: 0.7601 MB / 0.5199 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.1217, allocations: 122.8 kB / 0.52 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1217, allocations: 0 / 0.52 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.072e-05/0.1218, allocations: 81.11 kB / 0.5201 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1219, allocations: 10.44 kB / 0.5201 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.1222, allocations: 144.2 kB / 0.5203 GB, free: 2.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.943e-05/0.1223, allocations: 55.36 kB / 0.5203 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.07e-06/0.1223, allocations: 0 / 0.5203 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.1223, allocations: 7.438 kB / 0.5203 GB, free: 2.379 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1223, allocations: 0 / 0.5203 GB, free: 2.379 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.1485, allocations: 1.932 MB / 0.5222 GB, free: 448 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.3, allocations: 3.938 kB / 0.5222 GB, free: 444 kB / 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: 14.100877182092518]