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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001617/0.001617, allocations: 118.6 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001901/0.001901, allocations: 214.6 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.2 MB / 254.5 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2319/0.2319, allocations: 46.9 MB / 357.4 MB, free: 10.47 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003251/0.003251, allocations: 80.19 kB / 0.4912 GB, free: 26.99 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1254, allocations: 65.99 MB / 0.5557 GB, free: 9.094 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001476/0.1269, allocations: 474.6 kB / 0.5561 GB, free: 8.625 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00054/0.1274, allocations: 219.7 kB / 0.5563 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.379e-05/0.1275, allocations: 0 / 0.5563 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.809e-06/0.1275, allocations: 4 kB / 0.5563 GB, free: 8.406 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.1275, allocations: 4 kB / 0.5563 GB, free: 8.402 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002645/0.1278, allocations: 47.83 kB / 0.5564 GB, free: 8.355 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.603e-05/0.1278, allocations: 0 / 0.5564 GB, free: 8.355 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.821e-05/0.1278, allocations: 4 kB / 0.5564 GB, free: 8.352 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.568e-05/0.1278, allocations: 3.984 kB / 0.5564 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.809e-05/0.1279, allocations: 0 / 0.5564 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.1279, allocations: 0 / 0.5564 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.128, allocations: 51.95 kB / 0.5564 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.39e-06/0.128, allocations: 0 / 0.5564 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.448e-05/0.128, allocations: 0 / 0.5564 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.1281, allocations: 52.14 kB / 0.5565 GB, free: 8.246 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1281, allocations: 3.938 kB / 0.5565 GB, free: 8.242 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1281, allocations: 7.938 kB / 0.5565 GB, free: 8.234 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1281, allocations: 0 / 0.5565 GB, free: 8.234 MB / 414.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.0003486/0.1285, allocations: 351.9 kB / 0.5568 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.1285, allocations: 12.03 kB / 0.5568 GB, free: 7.824 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.873e-05/0.1285, allocations: 30.75 kB / 0.5569 GB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.933e-05/0.1286, allocations: 0.9375 kB / 0.5569 GB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1287, allocations: 160.4 kB / 0.557 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1287, allocations: 384 / 0.557 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.1287, allocations: 8.375 kB / 0.557 GB, free: 7.582 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.593e-05/0.1288, allocations: 30.25 kB / 0.5571 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1288, allocations: 3.938 kB / 0.5571 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-06/0.1288, allocations: 0 / 0.5571 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1288, allocations: 4 kB / 0.5571 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.947e-05/0.1288, allocations: 3.938 kB / 0.5571 GB, free: 7.535 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.1289, allocations: 145.7 kB / 0.5572 GB, free: 7.344 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.874e-05/0.129, allocations: 22.61 kB / 0.5572 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.308e-05/0.129, allocations: 4.859 kB / 0.5572 GB, free: 7.305 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.129, allocations: 3.938 kB / 0.5572 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.1291, allocations: 60.25 kB / 0.5573 GB, free: 7.227 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1291, allocations: 0 / 0.5573 GB, free: 7.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001554/0.1292, allocations: 71.34 kB / 0.5574 GB, free: 7.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.1293, allocations: 81.11 kB / 0.5574 GB, free: 7.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.898e-05/0.1293, allocations: 93.81 kB / 0.5575 GB, free: 6.945 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.1293, allocations: 29.83 kB / 0.5576 GB, free: 6.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/0.1294, allocations: 84.12 kB / 0.5576 GB, free: 6.824 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.1294, allocations: 0 / 0.5576 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.1294, allocations: 13.72 kB / 0.5577 GB, free: 6.805 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1296, allocations: 314.8 kB / 0.558 GB, free: 6.488 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.975e-06/0.1296, allocations: 0 / 0.558 GB, free: 6.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.739e-06/0.1296, allocations: 3.938 kB / 0.558 GB, free: 6.484 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.526e-05/0.1296, allocations: 64.33 kB / 0.558 GB, free: 6.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1296, allocations: 0 / 0.558 GB, free: 6.406 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.089e-05/0.1297, allocations: 67.33 kB / 0.5581 GB, free: 6.328 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.1297, allocations: 29.7 kB / 0.5581 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.1297, allocations: 7.922 kB / 0.5581 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1298, allocations: 0 / 0.5581 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-06/0.1298, allocations: 4 kB / 0.5581 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.1298, allocations: 0 / 0.5581 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.1298, allocations: 4 kB / 0.5581 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.1298, allocations: 0 / 0.5581 GB, free: 6.277 MB / 414.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.262e-05/0.1299, allocations: 143.6 kB / 0.5583 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-06/0.1299, allocations: 0 / 0.5583 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.516e-06/0.1299, allocations: 7.062 kB / 0.5583 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1299, allocations: 0 / 0.5583 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1299, allocations: 0 / 0.5583 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.1299, allocations: 0 / 0.5583 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.13, allocations: 145.7 kB / 0.5584 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.13, allocations: 0 / 0.5584 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-06/0.13, allocations: 3.984 kB / 0.5584 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.13, allocations: 0 / 0.5584 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.13, allocations: 11.94 kB / 0.5584 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.13, allocations: 0 / 0.5584 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.13, allocations: 0 / 0.5584 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.1301, allocations: 90.78 kB / 0.5585 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.1302, allocations: 81.09 kB / 0.5586 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1302, allocations: 7.938 kB / 0.5586 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.1302, allocations: 0 / 0.5586 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.1302, allocations: 8.031 kB / 0.5586 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.1302, allocations: 0 / 0.5586 GB, free: 5.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.302e-05/0.1303, allocations: 80.95 kB / 0.5587 GB, free: 5.605 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1303, allocations: 0 / 0.5587 GB, free: 5.605 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.1305, allocations: 15.94 kB / 0.5587 GB, free: 5.59 MB / 414.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.0007822/0.1313, allocations: 0.732 MB / 0.5594 GB, free: 4.852 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.04e-05/0.1313, allocations: 63.41 kB / 0.5595 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1314, allocations: 0 / 0.5595 GB, free: 4.777 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.153e-05/0.1314, allocations: 63.33 kB / 0.5595 GB, free: 4.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.1315, allocations: 2.109 kB / 0.5595 GB, free: 4.703 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002856/0.1318, allocations: 118.6 kB / 0.5597 GB, free: 4.547 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1321, allocations: 0.673 MB / 0.5603 GB, free: 3.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.069e-06/0.1321, allocations: 4 kB / 0.5603 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.118e-05/0.1321, allocations: 7.438 kB / 0.5603 GB, free: 3.836 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1321, allocations: 0 / 0.5603 GB, free: 3.836 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.1544, allocations: 1.393 MB / 0.5617 GB, free: 2.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.337/8.492, allocations: 11.88 kB / 0.5617 GB, free: 2.496 MB / 414.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.339936901349574]