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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007928/0.0007931, allocations: 96.78 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007784/0.0007786, allocations: 176.2 kB / 16.58 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.4 MB / 222.7 MB, free: 5.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3143/0.3143, allocations: 43.55 MB / 314.6 MB, free: 9.016 MB / 254.1 MB 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.0004698/0.0004698, allocations: 12 kB / 384 MB, free: 8.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1041, allocations: 58.86 MB / 442.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0004818/0.1046, allocations: 220.4 kB / 443.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003958/0.105, allocations: 195 kB / 443.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.423e-05/0.105, allocations: 0 / 443.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.808e-06/0.1051, allocations: 0 / 443.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.1051, allocations: 0 / 443.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.1053, allocations: 39.89 kB / 443.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.721e-05/0.1053, allocations: 0 / 443.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.85e-05/0.1053, allocations: 4 kB / 443.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.1054, allocations: 4 kB / 443.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.95e-05/0.1054, allocations: 0 / 443.3 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-06/0.1054, allocations: 7.938 kB / 443.3 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.792e-05/0.1055, allocations: 51.88 kB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.598e-06/0.1055, allocations: 0 / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.336e-05/0.1056, allocations: 29.7 kB / 443.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.147e-05/0.1056, allocations: 27.95 kB / 443.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1056, allocations: 0 / 443.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.1056, allocations: 0 / 443.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.725e-06/0.1057, allocations: 0 / 443.4 MB, free: 12.64 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.0002475/0.1059, allocations: 349.1 kB / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1059, allocations: 8.031 kB / 443.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.369e-05/0.106, allocations: 34.56 kB / 443.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.931e-05/0.106, allocations: 7.859 kB / 443.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.697e-05/0.1061, allocations: 159.1 kB / 444 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-06/0.1061, allocations: 0 / 444 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-06/0.1061, allocations: 4 kB / 444 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.392e-05/0.1062, allocations: 33.64 kB / 444 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.1062, allocations: 0 / 444 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.39e-06/0.1062, allocations: 0 / 444 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.1062, allocations: 4 kB / 444 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.459e-05/0.1062, allocations: 7.984 kB / 444 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.1063, allocations: 145.6 kB / 444.2 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.155e-05/0.1064, allocations: 18.61 kB / 444.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.1064, allocations: 4.859 kB / 444.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.1064, allocations: 7.922 kB / 444.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.1065, allocations: 60.27 kB / 444.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1065, allocations: 3.938 kB / 444.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001297/0.1066, allocations: 67.45 kB / 444.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.1067, allocations: 85.05 kB / 444.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.401e-05/0.1067, allocations: 89.86 kB / 444.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.819e-06/0.1067, allocations: 25.7 kB / 444.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.175e-05/0.1068, allocations: 80.14 kB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.253e-05/0.1068, allocations: 0 / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-06/0.1068, allocations: 0 / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1069, allocations: 318.8 kB / 444.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.1069, allocations: 12.11 kB / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-06/0.1069, allocations: 0 / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.094e-05/0.1069, allocations: 25.7 kB / 445 MB, free: 10.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1069, allocations: 0 / 445 MB, free: 10.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.827e-05/0.107, allocations: 63.34 kB / 445 MB, free: 10.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.107, allocations: 29.7 kB / 445 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.107, allocations: 0 / 445 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1071, allocations: 7.984 kB / 445 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1071, allocations: 0 / 445 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.1071, allocations: 4.094 kB / 445.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.412e-05/0.1071, allocations: 288 / 445.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.1071, allocations: 0 / 445.1 MB, free: 10.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.1072, allocations: 147.5 kB / 445.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-06/0.1072, allocations: 0 / 445.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-06/0.1072, allocations: 3.125 kB / 445.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1072, allocations: 0 / 445.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.1072, allocations: 0 / 445.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-06/0.1072, allocations: 0 / 445.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.462e-05/0.1073, allocations: 161.6 kB / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1073, allocations: 0 / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1073, allocations: 0 / 445.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1073, allocations: 4 kB / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.1074, allocations: 0 / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1074, allocations: 0 / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1074, allocations: 4 kB / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.1075, allocations: 98.66 kB / 445.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.1075, allocations: 81.14 kB / 445.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.163e-05/0.1076, allocations: 4 kB / 445.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-06/0.1076, allocations: 0 / 445.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.1076, allocations: 0 / 445.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.1076, allocations: 0 / 445.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.287e-05/0.1076, allocations: 79.27 kB / 445.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1076, allocations: 0 / 445.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001967/0.1078, allocations: 20 kB / 445.6 MB, 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005494/0.1084, allocations: 0.7315 MB / 446.4 MB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.925e-05/0.1085, allocations: 59.41 kB / 446.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1085, allocations: 0 / 446.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.578e-05/0.1085, allocations: 55.41 kB / 446.5 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1086, allocations: 0 / 446.5 MB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002296/0.1089, allocations: 116.3 kB / 446.6 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.1091, allocations: 0.6694 MB / 447.3 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.05e-06/0.1091, allocations: 4 kB / 447.3 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.819e-06/0.1091, allocations: 11.44 kB / 447.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1091, allocations: 0 / 447.3 MB, free: 8.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01089/0.12, allocations: 1.168 MB / 448.5 MB, free: 7.152 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.1202, allocations: 210.1 kB / 448.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.756, allocations: 0 / 448.7 MB, free: 6.914 MB / 382.1 MB (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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat