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.001192/0.001192, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 205.2 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.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2209/0.2209, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 75.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3168, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001459/0.3183, allocations: 480.3 kB / 0.5309 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005174/0.3189, allocations: 215.1 kB / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.159e-05/0.3189, allocations: 0 / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3189, allocations: 0 / 0.5312 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.069e-06/0.3189, 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.0002756/0.3192, allocations: 46.45 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.637e-05/0.3193, allocations: 5.516 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.46e-05/0.3193, allocations: 5.406 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.396e-05/0.3194, allocations: 1.219 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.888e-05/0.3194, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.863e-06/0.3194, allocations: 5.25 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3195, allocations: 49.45 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.833e-06/0.3195, allocations: 0 / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.3196, allocations: 5.375 kB / 0.5313 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.3197, allocations: 45.16 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3197, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3197, allocations: 3.938 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.3197, allocations: 0 / 0.5313 GB, free: 12.83 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.0002998/0.32, allocations: 357.4 kB / 0.5317 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.3201, allocations: 9.781 kB / 0.5317 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.712e-05/0.3201, allocations: 30.75 kB / 0.5317 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.123e-05/0.3201, allocations: 7.906 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.648e-05/0.3202, allocations: 160.4 kB / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-06/0.3202, allocations: 384 / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.3202, allocations: 384 / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.991e-05/0.3203, allocations: 33.5 kB / 0.5319 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3203, allocations: 7.938 kB / 0.5319 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.3203, allocations: 0 / 0.5319 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.3203, allocations: 0 / 0.5319 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.696e-05/0.3204, allocations: 5.25 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.3205, allocations: 146.9 kB / 0.532 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.508e-05/0.3205, allocations: 20.83 kB / 0.5321 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.382e-05/0.3205, allocations: 6.047 kB / 0.5321 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.3206, allocations: 0 / 0.5321 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.3206, allocations: 65.81 kB / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3206, allocations: 0 / 0.5321 GB, free: 11.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.3208, allocations: 67.59 kB / 0.5322 GB, free: 11.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3208, allocations: 81.05 kB / 0.5323 GB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.261e-05/0.3209, allocations: 95.47 kB / 0.5324 GB, free: 11.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.3209, allocations: 25.7 kB / 0.5324 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.378e-05/0.3209, allocations: 80.14 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.3209, allocations: 0 / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.321, allocations: 25.8 kB / 0.5325 GB, free: 11.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3211, allocations: 310.8 kB / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.3211, allocations: 0 / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.63e-06/0.3211, allocations: 4.906 kB / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.271e-05/0.3211, allocations: 60.55 kB / 0.5328 GB, free: 11.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3212, allocations: 0 / 0.5328 GB, free: 11.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.421e-05/0.3212, allocations: 66.55 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.149e-05/0.3213, allocations: 35.05 kB / 0.5329 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3213, allocations: 3.938 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.3213, allocations: 7.5 kB / 0.533 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3213, allocations: 3.938 kB / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.467e-06/0.3213, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.36e-05/0.3213, allocations: 0 / 0.533 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.3214, 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 7.181e-05/0.3214, allocations: 134.7 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-06/0.3214, allocations: 0 / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.043e-05/0.3215, allocations: 15.05 kB / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-06/0.3215, allocations: 0 / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3215, allocations: 1.062 kB / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3215, allocations: 0 / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.155e-05/0.3216, allocations: 145.6 kB / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3216, allocations: 0 / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-06/0.3216, allocations: 3.984 kB / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.3216, allocations: 0 / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.3216, allocations: 7.922 kB / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3216, allocations: 0 / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3216, allocations: 3.375 kB / 0.5333 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.029e-05/0.3217, allocations: 92.44 kB / 0.5333 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.3218, allocations: 85.09 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.3218, allocations: 3.938 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-06/0.3218, allocations: 3.594 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.3218, allocations: 0 / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.3218, allocations: 4 kB / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.59e-05/0.3218, allocations: 75.28 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3218, allocations: 4.031 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002039/0.3221, allocations: 18.03 kB / 0.5335 GB, free: 10.28 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.0006441/0.3227, allocations: 0.7299 MB / 0.5342 GB, free: 9.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.366e-05/0.3228, allocations: 65.47 kB / 0.5343 GB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3228, allocations: 0 / 0.5343 GB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.044e-05/0.3229, allocations: 58.08 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.0001192/0.323, allocations: 3.719 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.00025/0.3232, allocations: 111.9 kB / 0.5345 GB, free: 9.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.3235, allocations: 0.6741 MB / 0.5351 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.22e-06/0.3235, allocations: 0 / 0.5351 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.317e-05/0.3235, allocations: 8.719 kB / 0.5351 GB, free: 8.609 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3235, allocations: 0 / 0.5351 GB, free: 8.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.3406, allocations: 1.395 MB / 0.5365 GB, free: 7.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.261, allocations: 4.969 kB / 0.5365 GB, free: 7.77 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.csv","/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