Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.13 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 79.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2993, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001525/0.3009, allocations: 485 kB / 0.5311 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005359/0.3014, allocations: 215.4 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.209e-05/0.3015, allocations: 0 / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.3015, allocations: 0 / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.3015, allocations: 1.094 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320: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.0002871/0.3018, allocations: 49.41 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.941e-05/0.3019, allocations: 1.25 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.607e-05/0.3019, allocations: 1.125 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.314e-05/0.3019, allocations: 1.156 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.051e-05/0.302, allocations: 9.094 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-06/0.302, allocations: 0 / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.3021, allocations: 55.02 kB / 0.5314 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.3021, allocations: 3.984 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.6e-05/0.3021, allocations: 1.5 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.3022, allocations: 43.36 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3023, allocations: 9.188 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3023, allocations: 0 / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3023, allocations: 0 / 0.5314 GB, free: 12.75 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.0003602/0.3026, allocations: 353.1 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3027, allocations: 8.906 kB / 0.5318 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.179e-05/0.3027, allocations: 31.81 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.166e-05/0.3027, allocations: 0.9375 kB / 0.5318 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3029, allocations: 161.7 kB / 0.532 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.3029, allocations: 384 / 0.532 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.3029, allocations: 1.719 kB / 0.532 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.036e-05/0.303, allocations: 35.69 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.303, allocations: 5.219 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-06/0.303, allocations: 0 / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.303, allocations: 4 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.734e-05/0.303, allocations: 5.531 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.3032, allocations: 147 kB / 0.5322 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.742e-05/0.3032, allocations: 17.36 kB / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.894e-05/0.3033, allocations: 4.859 kB / 0.5322 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.732e-06/0.3033, allocations: 1.406 kB / 0.5322 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.328e-05/0.3033, allocations: 69.62 kB / 0.5322 GB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3033, allocations: 0 / 0.5322 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.3035, allocations: 67.16 kB / 0.5323 GB, free: 11.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.3036, allocations: 77.11 kB / 0.5324 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.844e-05/0.3036, allocations: 95.19 kB / 0.5325 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.3036, allocations: 25.7 kB / 0.5325 GB, free: 11.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.245e-05/0.3037, allocations: 84.12 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.3037, allocations: 1.375 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.3037, allocations: 14.94 kB / 0.5326 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3039, allocations: 316.2 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.638e-06/0.3039, allocations: 5.094 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.16e-06/0.3039, allocations: 1.125 kB / 0.5329 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.706e-05/0.304, allocations: 59.64 kB / 0.533 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.304, allocations: 0 / 0.533 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.535e-05/0.3041, allocations: 73.7 kB / 0.533 GB, free: 10.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.582e-05/0.3041, allocations: 31.45 kB / 0.5331 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3041, allocations: 8.031 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.3042, allocations: 5.281 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3042, allocations: 0 / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.3042, allocations: 0 / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.394e-05/0.3042, allocations: 1.062 kB / 0.5331 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.3042, allocations: 1.281 kB / 0.5331 GB, free: 10.86 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.773e-05/0.3043, allocations: 137.8 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.3043, allocations: 1.219 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.167e-05/0.3043, allocations: 7.062 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3043, allocations: 4 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3044, allocations: 1.219 kB / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.3044, allocations: 0 / 0.5332 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.3045, allocations: 150.8 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3045, allocations: 1.25 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.3045, allocations: 3.984 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.3045, allocations: 0 / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.3045, allocations: 5.094 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3045, allocations: 0 / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3045, allocations: 1.25 kB / 0.5334 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001076/0.3046, allocations: 93.94 kB / 0.5335 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.3047, allocations: 81.09 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.3047, allocations: 5.219 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-06/0.3047, allocations: 1.375 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.3047, allocations: 0 / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.3047, allocations: 1.344 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.919e-05/0.3048, allocations: 75.28 kB / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3048, allocations: 0 / 0.5336 GB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002112/0.305, allocations: 19.62 kB / 0.5336 GB, free: 10.21 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.0007577/0.3058, allocations: 0.7331 MB / 0.5344 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.722e-05/0.3059, allocations: 56.44 kB / 0.5344 GB, free: 9.453 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3059, allocations: 4.062 kB / 0.5344 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.106e-05/0.3059, allocations: 57.67 kB / 0.5345 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.3061, allocations: 2.188 kB / 0.5345 GB, free: 9.383 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002755/0.3063, allocations: 119.5 kB / 0.5346 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3067, allocations: 0.6704 MB / 0.5352 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.61e-06/0.3067, allocations: 0 / 0.5352 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.029e-05/0.3067, allocations: 7.438 kB / 0.5352 GB, free: 8.535 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3067, allocations: 0 / 0.5352 GB, free: 8.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.3292, allocations: 1.4 MB / 0.5366 GB, free: 7.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.486, allocations: 6.156 kB / 0.5366 GB, free: 7.688 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches