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.001802/0.001802, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002299/0.002299, allocations: 206.2 kB / 24.51 MB, free: 3.945 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.47/1.47, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.3257/0.3257, allocations: 46.95 MB / 361.6 MB, free: 3.949 MB / 286.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00385/0.00385, allocations: 75.88 kB / 0.4969 GB, free: 7.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.319, allocations: 66.09 MB / 0.5614 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001571/0.3205, allocations: 483.5 kB / 0.5619 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.3228, allocations: 1.346 MB / 0.5632 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.443e-05/0.3228, allocations: 0 / 0.5632 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.142e-05/0.3228, allocations: 4 kB / 0.5632 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.323, allocations: 11.94 kB / 0.5632 GB, free: 2.215 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.001065/0.324, allocations: 263.2 kB / 0.5635 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.177e-05/0.3241, allocations: 7.938 kB / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.746e-05/0.3241, allocations: 0 / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.3241, allocations: 7.984 kB / 0.5635 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.239e-05/0.3242, allocations: 4 kB / 0.5635 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.693e-06/0.3242, allocations: 0 / 0.5635 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004367/0.3286, allocations: 0.7309 MB / 0.5642 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.3286, allocations: 3.984 kB / 0.5642 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.858e-05/0.3286, allocations: 7.938 kB / 0.5642 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.3289, allocations: 169.6 kB / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3289, allocations: 0 / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3289, allocations: 4 kB / 0.5644 GB, free: 1.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.3289, allocations: 0 / 0.5644 GB, free: 1.152 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.0003912/0.3293, allocations: 315.6 kB / 0.5647 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.3293, allocations: 8.031 kB / 0.5647 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.458e-05/0.3293, allocations: 192 / 0.5647 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.433e-05/0.3294, allocations: 34.75 kB / 0.5647 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.3294, allocations: 0.9375 kB / 0.5647 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.628e-05/0.3295, allocations: 110.5 kB / 0.5648 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.3295, allocations: 4.312 kB / 0.5648 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-06/0.3295, allocations: 4.375 kB / 0.5648 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.624e-05/0.3296, allocations: 59.72 kB / 0.5649 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3296, allocations: 4 kB / 0.5649 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-06/0.3296, allocations: 0 / 0.5649 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.3296, allocations: 0 / 0.5649 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.735e-05/0.3296, allocations: 25.7 kB / 0.5649 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.3297, allocations: 128.7 kB / 0.565 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.789e-05/0.3298, allocations: 48.25 kB / 0.5651 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.3298, allocations: 30.56 kB / 0.5651 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.3298, allocations: 0 / 0.5651 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.3299, allocations: 64.27 kB / 0.5652 GB, free: 164 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3299, allocations: 4 kB / 0.5652 GB, free: 160 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001851/0.3301, allocations: 118.8 kB / 0.5653 GB, free: 16 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.3301, allocations: 81.05 kB / 0.5654 GB, free: 15.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.324e-05/0.3302, allocations: 97.84 kB / 0.5655 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.3302, allocations: 25.7 kB / 0.5655 GB, free: 15.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.3303, allocations: 84.14 kB / 0.5656 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.199e-05/0.3303, allocations: 4 kB / 0.5656 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.65e-05/0.3303, allocations: 9.719 kB / 0.5656 GB, free: 15.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3304, allocations: 318.8 kB / 0.5659 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.359e-05/0.3305, allocations: 25.95 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.952e-05/0.3305, allocations: 29.7 kB / 0.5659 GB, free: 15.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.766e-05/0.3306, allocations: 72.19 kB / 0.566 GB, free: 15.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3306, allocations: 0 / 0.566 GB, free: 15.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.682e-05/0.3307, allocations: 93.06 kB / 0.5661 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3307, allocations: 33.64 kB / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.3307, allocations: 3.984 kB / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.3307, allocations: 0 / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.21e-07/0.3307, allocations: 0 / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.3307, allocations: 0 / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.784e-05/0.3307, allocations: 8.094 kB / 0.5661 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3307, allocations: 3.938 kB / 0.5661 GB, free: 15.04 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.41e-05/0.3308, allocations: 136.9 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.3308, allocations: 7.938 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.3308, allocations: 3.156 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3308, allocations: 3.984 kB / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3309, allocations: 0 / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.3309, allocations: 0 / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.635e-05/0.3309, allocations: 120.8 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.331, allocations: 4 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.331, allocations: 4 kB / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.331, allocations: 3.938 kB / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.331, allocations: 0 / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.331, allocations: 4 kB / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.331, allocations: 0 / 0.5664 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.3311, allocations: 116.5 kB / 0.5665 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-06/0.3311, allocations: 7.938 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.477e-05/0.3311, allocations: 4 kB / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.3311, allocations: 0 / 0.5665 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.3311, allocations: 11.86 kB / 0.5665 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.3311, allocations: 32 / 0.5665 GB, free: 14.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.3312, allocations: 83.28 kB / 0.5666 GB, free: 14.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3312, allocations: 0 / 0.5666 GB, free: 14.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.3315, allocations: 63.8 kB / 0.5667 GB, free: 14.38 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.001145/0.3326, allocations: 0.8901 MB / 0.5676 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001242/0.3327, allocations: 114.8 kB / 0.5677 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3327, allocations: 0 / 0.5677 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.624e-05/0.3328, allocations: 89.03 kB / 0.5677 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.3329, allocations: 128 / 0.5677 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003709/0.3333, allocations: 176.2 kB / 0.5679 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.719e-05/0.3333, allocations: 59.34 kB / 0.568 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.524e-06/0.3334, allocations: 0 / 0.568 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.438e-05/0.3334, allocations: 7.438 kB / 0.568 GB, free: 12.96 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3334, allocations: 0 / 0.568 GB, free: 12.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.3579, allocations: 2.73 MB / 0.5706 GB, free: 10.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.92, allocations: 11.55 kB / 0.5707 GB, free: 10.35 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.93511787999887]