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.001697/0.001697, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002129/0.002129, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.495/1.495, allocations: 230.5 MB / 258.2 MB, free: 8.016 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.2295/0.2295, allocations: 46.93 MB / 361.6 MB, free: 4.195 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002651/0.002651, allocations: 71.89 kB / 0.4969 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2984, allocations: 66.09 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001569/0.3, allocations: 469.1 kB / 0.5619 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005838/0.3006, allocations: 225.7 kB / 0.5622 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.175e-05/0.3006, allocations: 4 kB / 0.5622 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.133e-05/0.3006, allocations: 0 / 0.5622 GB, free: 3.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-06/0.3006, allocations: 0 / 0.5622 GB, free: 3.621 MB / 398.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.0002938/0.3009, allocations: 51.81 kB / 0.5622 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.977e-05/0.3009, allocations: 4 kB / 0.5622 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.301, allocations: 4 kB / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.499e-05/0.301, allocations: 0 / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.142e-05/0.301, allocations: 0 / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-06/0.301, allocations: 0 / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.3012, allocations: 51.95 kB / 0.5623 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.3012, allocations: 0 / 0.5623 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.3012, allocations: 11.98 kB / 0.5623 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.3013, allocations: 51.61 kB / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3013, allocations: 0 / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3013, allocations: 0 / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3013, allocations: 0 / 0.5623 GB, free: 3.453 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.0003222/0.3016, allocations: 278.2 kB / 0.5626 GB, free: 3.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3017, allocations: 8.031 kB / 0.5626 GB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.61e-05/0.3017, allocations: 192 / 0.5626 GB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.954e-05/0.3017, allocations: 34.75 kB / 0.5626 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.323e-05/0.3018, allocations: 4.938 kB / 0.5626 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.32e-05/0.3018, allocations: 106.5 kB / 0.5627 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.3018, allocations: 384 / 0.5627 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.3019, allocations: 4.359 kB / 0.5627 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.262e-05/0.3019, allocations: 38 kB / 0.5628 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.302, allocations: 0 / 0.5628 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.302, allocations: 0 / 0.5628 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.302, allocations: 0 / 0.5628 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.258e-05/0.302, allocations: 11.94 kB / 0.5628 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.3021, allocations: 116.8 kB / 0.5629 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.824e-05/0.3022, allocations: 18.58 kB / 0.5629 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.3022, allocations: 8.953 kB / 0.5629 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.608e-06/0.3022, allocations: 0 / 0.5629 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/0.3023, allocations: 64.19 kB / 0.563 GB, free: 2.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3023, allocations: 0 / 0.563 GB, free: 2.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001793/0.3024, allocations: 63.34 kB / 0.563 GB, free: 2.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.3025, allocations: 81.23 kB / 0.5631 GB, free: 2.457 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.776e-05/0.3026, allocations: 97.81 kB / 0.5632 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3026, allocations: 37.58 kB / 0.5633 GB, free: 2.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.3026, allocations: 80.14 kB / 0.5633 GB, free: 2.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.3026, allocations: 0 / 0.5633 GB, free: 2.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.3027, allocations: 13.7 kB / 0.5633 GB, free: 2.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3028, allocations: 314.8 kB / 0.5636 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.3028, allocations: 0 / 0.5636 GB, free: 1.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.732e-06/0.3028, allocations: 4 kB / 0.5636 GB, free: 1.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.766e-05/0.3029, allocations: 64.27 kB / 0.5637 GB, free: 1.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3029, allocations: 0 / 0.5637 GB, free: 1.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.679e-05/0.303, allocations: 67.33 kB / 0.5638 GB, free: 1.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.391e-05/0.303, allocations: 33.64 kB / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.303, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.303, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.303, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.303, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.303, allocations: 8.094 kB / 0.5638 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.303, allocations: 0 / 0.5638 GB, free: 1.684 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.114e-05/0.3031, allocations: 132.9 kB / 0.5639 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.3031, allocations: 11.92 kB / 0.5639 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-06/0.3032, allocations: 3 kB / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3032, allocations: 0 / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3032, allocations: 0 / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.3032, allocations: 0 / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.3033, allocations: 120.8 kB / 0.5641 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3033, allocations: 4 kB / 0.5641 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3033, allocations: 0 / 0.5641 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3033, allocations: 3.938 kB / 0.5641 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.3033, allocations: 3.984 kB / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3033, allocations: 0 / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3033, allocations: 0 / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.3034, allocations: 90.78 kB / 0.5642 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.073e-06/0.3034, allocations: 3.984 kB / 0.5642 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.3034, allocations: 11.97 kB / 0.5642 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.3034, allocations: 0 / 0.5642 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-06/0.3035, allocations: 0 / 0.5642 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.3035, allocations: 7.984 kB / 0.5642 GB, free: 1.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.275e-05/0.3035, allocations: 79.22 kB / 0.5643 GB, free: 1.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3035, allocations: 0 / 0.5643 GB, free: 1.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.3037, allocations: 19.94 kB / 0.5643 GB, free: 1.117 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.0007654/0.3045, allocations: 0.7112 MB / 0.565 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.591e-05/0.3046, allocations: 59.41 kB / 0.565 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3046, allocations: 0 / 0.565 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.775e-05/0.3046, allocations: 59.39 kB / 0.5651 GB, free: 260 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.3048, allocations: 4 kB / 0.5651 GB, free: 256 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/0.3051, allocations: 114.6 kB / 0.5652 GB, free: 100 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3054, allocations: 0.6808 MB / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.799e-06/0.3054, allocations: 0 / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.3054, allocations: 7.438 kB / 0.5659 GB, free: 15.38 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3054, allocations: 0 / 0.5659 GB, free: 15.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.3268, allocations: 1.55 MB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.79, allocations: 18.27 kB / 0.5674 GB, free: 13.93 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.727438874018844]