Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.001335/0.001335, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00159/0.00159, allocations: 209.7 kB / 23.72 MB, free: 4.391 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.439/1.439, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.2246/0.2246, allocations: 46.94 MB / 360.8 MB, free: 3.914 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.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 83.8 kB / 0.4961 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2941, allocations: 66.08 MB / 0.5607 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001555/0.2956, allocations: 481.1 kB / 0.5611 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.2978, allocations: 1.342 MB / 0.5624 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.163e-05/0.2978, allocations: 0 / 0.5624 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.38e-05/0.2978, allocations: 0 / 0.5624 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.298, allocations: 15.97 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.299, allocations: 267.9 kB / 0.5627 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.716e-05/0.2991, allocations: 7.938 kB / 0.5627 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.616e-05/0.2991, allocations: 3.984 kB / 0.5627 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.726e-05/0.2991, allocations: 8 kB / 0.5627 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.264e-05/0.2992, allocations: 4 kB / 0.5627 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-06/0.2992, allocations: 3.984 kB / 0.5627 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004196/0.3034, allocations: 0.7074 MB / 0.5634 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.3034, allocations: 0 / 0.5634 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.3034, allocations: 7.938 kB / 0.5634 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.3037, allocations: 177.6 kB / 0.5636 GB, free: 1.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3037, allocations: 0 / 0.5636 GB, free: 1.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3037, allocations: 0 / 0.5636 GB, free: 1.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.3037, allocations: 0 / 0.5636 GB, free: 1.129 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.0004166/0.3042, allocations: 319.6 kB / 0.5639 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3042, allocations: 8.031 kB / 0.5639 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.3042, allocations: 30.75 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.3042, allocations: 0.9375 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.3044, allocations: 110.5 kB / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.3044, allocations: 384 / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.3044, allocations: 384 / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.412e-05/0.3045, allocations: 63.95 kB / 0.5641 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.3045, allocations: 3.938 kB / 0.5641 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.3045, allocations: 0 / 0.5641 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.3045, allocations: 0 / 0.5641 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.51e-05/0.3045, allocations: 37.58 kB / 0.5642 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.3047, allocations: 112.8 kB / 0.5643 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.109e-05/0.3047, allocations: 52.3 kB / 0.5643 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.3048, allocations: 34.56 kB / 0.5643 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-06/0.3048, allocations: 4.062 kB / 0.5644 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.3048, allocations: 56.27 kB / 0.5644 GB, free: 144 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3048, allocations: 0 / 0.5644 GB, free: 144 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002138/0.305, allocations: 130.7 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.3051, allocations: 77.11 kB / 0.5646 GB, free: 15.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.744e-05/0.3052, allocations: 93.86 kB / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.3052, allocations: 29.64 kB / 0.5647 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.3052, allocations: 80.14 kB / 0.5648 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.204e-05/0.3052, allocations: 256 / 0.5648 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.3053, allocations: 25.7 kB / 0.5648 GB, free: 15.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3054, allocations: 310.8 kB / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.528e-05/0.3054, allocations: 25.7 kB / 0.5651 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.236e-05/0.3055, allocations: 29.7 kB / 0.5652 GB, free: 15.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.311e-05/0.3055, allocations: 60.27 kB / 0.5652 GB, free: 15.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3055, allocations: 0 / 0.5652 GB, free: 15.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000104/0.3056, allocations: 101 kB / 0.5653 GB, free: 15.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.3057, allocations: 33.64 kB / 0.5654 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3057, allocations: 4 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.3057, allocations: 4.094 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.3057, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.3057, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.614e-05/0.3057, allocations: 0 / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.3057, allocations: 0 / 0.5654 GB, free: 15.03 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 0.0001011/0.3058, allocations: 140.8 kB / 0.5655 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.3058, allocations: 3.938 kB / 0.5655 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.3058, allocations: 3.156 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3058, allocations: 4 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.3058, allocations: 0 / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.3058, allocations: 4 kB / 0.5655 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3059, allocations: 120.8 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3059, allocations: 0 / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-06/0.3059, allocations: 8 kB / 0.5656 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3059, allocations: 3.938 kB / 0.5656 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.306, allocations: 0 / 0.5656 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.306, allocations: 0 / 0.5656 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.306, allocations: 0 / 0.5656 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.3061, allocations: 124.5 kB / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-06/0.3061, allocations: 0 / 0.5658 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.3061, allocations: 7.875 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.3061, allocations: 4.031 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.3061, allocations: 4 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-06/0.3061, allocations: 3.984 kB / 0.5658 GB, free: 14.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.752e-05/0.3062, allocations: 83.22 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3062, allocations: 0 / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.3065, allocations: 63.8 kB / 0.5659 GB, free: 14.37 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.001138/0.3076, allocations: 0.8923 MB / 0.5668 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001395/0.3077, allocations: 118.8 kB / 0.5669 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3077, allocations: 4.062 kB / 0.5669 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.041e-05/0.3078, allocations: 81.11 kB / 0.567 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3079, allocations: 7.938 kB / 0.567 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.3083, allocations: 168.1 kB / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.625e-05/0.3084, allocations: 55.36 kB / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.394e-06/0.3084, allocations: 0 / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.603e-05/0.3084, allocations: 7.438 kB / 0.5672 GB, free: 12.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3084, allocations: 0 / 0.5672 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04054/0.3489, allocations: 3.073 MB / 0.5702 GB, free: 9.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.47, allocations: 6.953 kB / 0.5702 GB, free: 9.98 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.281260587275028]