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.001098/0.001098, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3103, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001378/0.3117, allocations: 486.8 kB / 0.531 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000501/0.3122, allocations: 215.6 kB / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.049e-05/0.3122, allocations: 0 / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.622e-05/0.3122, allocations: 0 / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.651e-06/0.3123, allocations: 0 / 0.5312 GB, free: 12.93 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.0002843/0.3125, allocations: 46.98 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.415e-05/0.3126, allocations: 1.406 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.3126, allocations: 5.406 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.47e-05/0.3127, allocations: 3.984 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.97e-05/0.3127, allocations: 1.375 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.3127, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.3128, allocations: 50.33 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.602e-06/0.3128, allocations: 0 / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.962e-05/0.3129, allocations: 1.812 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.313, allocations: 44.03 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.313, allocations: 1.812 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.313, allocations: 11.86 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.313, allocations: 0 / 0.5313 GB, free: 12.82 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.0003175/0.3133, allocations: 356.7 kB / 0.5317 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3134, allocations: 9.031 kB / 0.5317 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.3134, allocations: 36.08 kB / 0.5317 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.3135, allocations: 0.9375 kB / 0.5317 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.837e-05/0.3135, allocations: 160.4 kB / 0.5319 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.3136, allocations: 1.719 kB / 0.5319 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-06/0.3136, allocations: 384 / 0.5319 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.492e-05/0.3137, allocations: 28.92 kB / 0.5319 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3137, allocations: 7.938 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.3137, allocations: 1.344 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3137, allocations: 0 / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.606e-05/0.3137, allocations: 1.125 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.3138, allocations: 155 kB / 0.532 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.618e-05/0.3139, allocations: 21.17 kB / 0.5321 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.292e-05/0.3139, allocations: 6.016 kB / 0.5321 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.3139, allocations: 0 / 0.5321 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.314, allocations: 61.45 kB / 0.5321 GB, free: 11.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.314, allocations: 0 / 0.5321 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.3141, allocations: 77.27 kB / 0.5322 GB, free: 11.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3142, allocations: 77.11 kB / 0.5323 GB, free: 11.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.266e-05/0.3142, allocations: 89.86 kB / 0.5324 GB, free: 11.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.3142, allocations: 25.7 kB / 0.5324 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.075e-05/0.3143, allocations: 80.14 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.3143, allocations: 2.281 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.3143, allocations: 15.69 kB / 0.5325 GB, free: 11.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3145, allocations: 318.8 kB / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.3145, allocations: 0 / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.3145, allocations: 6.031 kB / 0.5328 GB, free: 11.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.187e-05/0.3145, allocations: 58.48 kB / 0.5328 GB, free: 11.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3145, allocations: 2.094 kB / 0.5328 GB, free: 11.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.87e-05/0.3146, allocations: 63.16 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.3146, allocations: 40.78 kB / 0.5329 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3147, allocations: 7.25 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.3147, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.3147, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.3147, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.3147, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.3147, allocations: 0 / 0.533 GB, free: 10.93 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 8.009e-05/0.3148, allocations: 133.8 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-06/0.3148, allocations: 1.156 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.264e-05/0.3148, allocations: 16.16 kB / 0.5331 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3149, allocations: 0 / 0.5331 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.3149, allocations: 0 / 0.5331 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3149, allocations: 5.203 kB / 0.5331 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.312e-05/0.315, allocations: 149.5 kB / 0.5332 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.315, allocations: 0 / 0.5332 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.315, allocations: 0 / 0.5332 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.315, allocations: 1.656 kB / 0.5332 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.315, allocations: 3.938 kB / 0.5332 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.315, allocations: 0 / 0.5332 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.315, allocations: 1.594 kB / 0.5333 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.3151, allocations: 101.2 kB / 0.5333 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.3152, allocations: 77.11 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.3152, allocations: 4.906 kB / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-06/0.3152, allocations: 2.125 kB / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.3152, allocations: 7.984 kB / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.3152, allocations: 4 kB / 0.5334 GB, free: 10.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.937e-05/0.3153, allocations: 81.53 kB / 0.5335 GB, free: 10.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3153, allocations: 0 / 0.5335 GB, free: 10.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002098/0.3155, allocations: 16.5 kB / 0.5335 GB, free: 10.27 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.0005646/0.316, allocations: 0.7189 MB / 0.5342 GB, free: 9.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.67e-05/0.3162, allocations: 67 kB / 0.5343 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3162, allocations: 0 / 0.5343 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.768e-05/0.3162, allocations: 54.56 kB / 0.5344 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.3163, allocations: 3.531 kB / 0.5344 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002589/0.3166, allocations: 119.3 kB / 0.5345 GB, free: 9.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.3168, allocations: 0.669 MB / 0.5351 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.562e-06/0.3168, allocations: 3.984 kB / 0.5351 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.215e-05/0.3168, allocations: 7.438 kB / 0.5351 GB, free: 8.605 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3168, allocations: 3.188 kB / 0.5351 GB, free: 8.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.3334, allocations: 1.395 MB / 0.5365 GB, free: 7.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.119, allocations: 6.156 kB / 0.5365 GB, free: 7.762 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