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.001121/0.001121, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 201.2 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.379/1.379, allocations: 227.4 MB / 246.9 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.2187/0.2187, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 75.88 kB / 480.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3378, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001605/0.3395, allocations: 484.6 kB / 0.5309 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005566/0.34, allocations: 207.7 kB / 0.5311 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.478e-05/0.3401, allocations: 0 / 0.5311 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.269e-05/0.3401, allocations: 0 / 0.5311 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.138e-06/0.3401, allocations: 7.938 kB / 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.0003044/0.3404, allocations: 42.33 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.156e-05/0.3405, allocations: 1.469 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.3405, allocations: 1.562 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.28e-05/0.3406, allocations: 3.984 kB / 0.5312 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.164e-05/0.3406, allocations: 5.656 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.352e-06/0.3406, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.3408, allocations: 55.45 kB / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.3408, allocations: 0 / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.975e-05/0.3408, allocations: 0 / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.3409, allocations: 48.64 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3409, allocations: 5.344 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.341, allocations: 3.938 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.341, 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.0003497/0.3413, allocations: 348.7 kB / 0.5316 GB, free: 12.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3414, allocations: 13.5 kB / 0.5317 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.3414, allocations: 30.75 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/0.3414, allocations: 3.031 kB / 0.5317 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.39e-05/0.3415, allocations: 164.4 kB / 0.5318 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.3416, allocations: 384 / 0.5319 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.3416, allocations: 6.594 kB / 0.5319 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.3417, allocations: 40.39 kB / 0.5319 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3417, allocations: 3.938 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.3417, allocations: 0 / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3417, allocations: 0 / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.894e-05/0.3417, allocations: 2.094 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.3419, allocations: 141.7 kB / 0.532 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.815e-05/0.3419, allocations: 19.2 kB / 0.5321 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.73e-05/0.342, allocations: 12.86 kB / 0.5321 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.342, allocations: 3.984 kB / 0.5321 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.342, allocations: 63.45 kB / 0.5321 GB, free: 11.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.342, allocations: 0 / 0.5321 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.3422, allocations: 61.72 kB / 0.5322 GB, free: 11.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.3423, allocations: 77.11 kB / 0.5323 GB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.679e-05/0.3423, allocations: 89.86 kB / 0.5323 GB, free: 11.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.3423, allocations: 34.62 kB / 0.5324 GB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.717e-05/0.3424, allocations: 84.14 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.3424, allocations: 1.156 kB / 0.5325 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.3424, allocations: 12 kB / 0.5325 GB, free: 11.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3425, allocations: 310.8 kB / 0.5328 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.3426, allocations: 1.281 kB / 0.5328 GB, free: 11.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.3426, allocations: 5.594 kB / 0.5328 GB, free: 11.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.944e-05/0.3426, allocations: 67.48 kB / 0.5328 GB, free: 11.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3426, allocations: 0 / 0.5328 GB, free: 11.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.077e-05/0.3427, allocations: 69.98 kB / 0.5329 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.3428, allocations: 35.45 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3428, allocations: 3.938 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3428, allocations: 0 / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3428, allocations: 0 / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3428, allocations: 0 / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.569e-05/0.3428, allocations: 2.219 kB / 0.5329 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.443e-06/0.3428, allocations: 0 / 0.5329 GB, free: 10.94 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.024e-05/0.3429, allocations: 142.7 kB / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.754e-06/0.3429, allocations: 0 / 0.5331 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.038e-05/0.3429, allocations: 7.062 kB / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3429, allocations: 2.656 kB / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.343, allocations: 0 / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.343, allocations: 3.938 kB / 0.5331 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.532e-05/0.3431, allocations: 147.9 kB / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3431, allocations: 2.438 kB / 0.5332 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.005e-06/0.3431, allocations: 7.922 kB / 0.5332 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3431, allocations: 4 kB / 0.5333 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3431, allocations: 3.938 kB / 0.5333 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.3431, allocations: 0 / 0.5333 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3431, allocations: 3.938 kB / 0.5333 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.3432, allocations: 90.61 kB / 0.5333 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.3433, allocations: 77.11 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.3433, allocations: 7.625 kB / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.3433, allocations: 0 / 0.5334 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.171e-05/0.3433, allocations: 4.031 kB / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.3433, allocations: 0 / 0.5334 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.754e-05/0.3433, allocations: 77.78 kB / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3433, allocations: 0 / 0.5335 GB, free: 10.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000207/0.3436, allocations: 14.66 kB / 0.5335 GB, free: 10.29 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.0006928/0.3443, allocations: 0.7354 MB / 0.5342 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.3444, allocations: 55 kB / 0.5343 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3444, allocations: 0 / 0.5343 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.605e-05/0.3444, allocations: 58.86 kB / 0.5343 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.3446, allocations: 0 / 0.5343 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002906/0.3449, allocations: 126.6 kB / 0.5345 GB, free: 9.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3451, allocations: 0.673 MB / 0.5351 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.3452, allocations: 0 / 0.5351 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.429e-05/0.3452, allocations: 7.438 kB / 0.5351 GB, free: 8.605 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3452, allocations: 0 / 0.5351 GB, free: 8.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.3639, allocations: 1.398 MB / 0.5365 GB, free: 7.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.624/7.988, allocations: 4.594 kB / 0.5365 GB, free: 7.766 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