Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.0008267/0.0008267, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007859/0.0007859, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8771/0.8771, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2469/0.2469, allocations: 34.24 MB / 294.8 MB, free: 0.6797 MB / 266.7 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.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.836e-05/2.004e-05, allocations: 2.281 kB / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001113/0.001133, allocations: 493 kB / 442.6 MB, free: 1.117 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1951/0.1962, allocations: 2.064 MB / 444.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.876e-05/0.1962, allocations: 0 / 444.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.1962, allocations: 0 / 444.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.137e-05/0.1962, allocations: 1.625 kB / 444.7 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008662/0.1971, allocations: 404.5 kB / 445.1 MB, free: 42.95 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.405e-05/0.1972, allocations: 10.02 kB / 445.1 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.1972, allocations: 5.594 kB / 445.1 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.714e-05/0.1972, allocations: 3.234 kB / 445.1 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007497/0.2047, allocations: 3.387 MB / 448.5 MB, free: 42.44 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.2047, allocations: 2.906 kB / 448.5 MB, free: 42.44 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.028e-05/0.2048, allocations: 6.875 kB / 448.5 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.2048, allocations: 0 / 448.5 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.269e-05/0.2049, allocations: 6.922 kB / 448.5 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.205, allocations: 10.14 kB / 448.5 MB, free: 42.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.205, allocations: 4 kB / 448.5 MB, free: 42.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.205, allocations: 6.781 kB / 448.5 MB, free: 42.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.205, allocations: 0 / 448.5 MB, free: 42.42 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002084/0.2052, allocations: 235.5 kB / 448.7 MB, free: 42.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2053, allocations: 12.09 kB / 448.7 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.096e-05/0.2053, allocations: 106 kB / 448.9 MB, free: 42.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.2054, allocations: 87.62 kB / 448.9 MB, free: 41.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.977e-05/0.2055, allocations: 181.1 kB / 449.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.2055, allocations: 153.8 kB / 449.3 MB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.2055, allocations: 154.9 kB / 449.4 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.65e-05/0.2056, allocations: 101.5 kB / 449.5 MB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.068e-06/0.2056, allocations: 78.38 kB / 449.6 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.2056, allocations: 154.7 kB / 449.7 MB, free: 41.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2056, allocations: 154.6 kB / 449.9 MB, free: 40.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.469e-05/0.2056, allocations: 157.4 kB / 450 MB, free: 40.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001303/0.2057, allocations: 419.1 kB / 450.5 MB, free: 40.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.082e-05/0.2058, allocations: 169.1 kB / 450.6 MB, free: 40.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.284e-05/0.2058, allocations: 80.14 kB / 450.7 MB, free: 40.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.2058, allocations: 78.25 kB / 450.8 MB, free: 40.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.2058, allocations: 113.8 kB / 450.9 MB, free: 39.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.2058, allocations: 0 / 450.9 MB, free: 39.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 5.922e-05/0.2059, allocations: 32.45 kB / 450.9 MB, free: 39.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.2059, allocations: 181.3 kB / 451.1 MB, free: 39.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.917e-05/0.206, allocations: 96.8 kB / 451.2 MB, free: 39.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-06/0.206, allocations: 25.7 kB / 451.2 MB, free: 39.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.12e-05/0.206, allocations: 84.08 kB / 451.3 MB, free: 39.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.225e-06/0.206, allocations: 0 / 451.3 MB, free: 39.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.815e-05/0.206, allocations: 12.47 kB / 451.3 MB, free: 39.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.264e-05/0.2061, allocations: 317.9 kB / 451.6 MB, free: 39.15 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-06/0.2061, allocations: 0 / 451.6 MB, free: 39.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.479e-05/0.2061, allocations: 71.81 kB / 451.7 MB, free: 39.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.043e-05/0.2061, allocations: 79.22 kB / 451.8 MB, free: 38.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.2061, allocations: 75.28 kB / 451.8 MB, free: 38.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.95e-05/0.2061, allocations: 28.77 kB / 451.9 MB, free: 38.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2062, allocations: 85.09 kB / 452 MB, free: 38.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2062, allocations: 75.28 kB / 452 MB, free: 38.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.2062, allocations: 161.3 kB / 452.2 MB, free: 38.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.263e-06/0.2062, allocations: 81.95 kB / 452.3 MB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.2062, allocations: 161.3 kB / 452.4 MB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.704e-05/0.2063, allocations: 75.28 kB / 452.5 MB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.2063, allocations: 82.22 kB / 452.6 MB, free: 38.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 4.673e-05/0.2063, allocations: 260.6 kB / 452.8 MB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.2063, allocations: 108.2 kB / 452.9 MB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.733e-05/0.2064, allocations: 110.9 kB / 453 MB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.2064, allocations: 188.1 kB / 453.2 MB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.2064, allocations: 179.5 kB / 453.4 MB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.2064, allocations: 179.5 kB / 453.6 MB, free: 37.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.767e-05/0.2065, allocations: 375.3 kB / 453.9 MB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.2065, allocations: 101 kB / 454 MB, free: 36.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.347e-06/0.2065, allocations: 111.1 kB / 454.1 MB, free: 36.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/0.2065, allocations: 176.3 kB / 454.3 MB, free: 36.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.2065, allocations: 179.2 kB / 454.5 MB, free: 36.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.306e-05/0.2065, allocations: 184.1 kB / 454.7 MB, free: 35.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/0.2065, allocations: 182.4 kB / 454.9 MB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.722e-05/0.2066, allocations: 310.8 kB / 455.2 MB, free: 35.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.447e-05/0.2066, allocations: 108 kB / 455.3 MB, free: 35.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.2066, allocations: 182.3 kB / 455.4 MB, free: 35.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.459e-05/0.2067, allocations: 104.9 kB / 455.5 MB, free: 35.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.2067, allocations: 187 kB / 455.7 MB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.2067, allocations: 101 kB / 455.8 MB, free: 34.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.92e-05/0.2067, allocations: 81.42 kB / 455.9 MB, free: 34.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2067, allocations: 3.938 kB / 455.9 MB, free: 34.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001651/0.2069, allocations: 0 / 455.9 MB, free: 34.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001388/0.207, allocations: 0.8017 MB / 456.7 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.562e-05/0.2071, allocations: 2.719 kB / 456.7 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2071, allocations: 0 / 456.7 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.182e-06/0.2071, allocations: 0 / 456.7 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.2073, allocations: 461.8 kB / 457.2 MB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.2075, allocations: 183 kB / 457.3 MB, free: 33.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.867e-05/0.2075, allocations: 58.2 kB / 457.4 MB, free: 33.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.33e-05/0.2076, allocations: 3.375 kB / 457.4 MB, free: 33.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.533e-05/0.2076, allocations: 12.48 kB / 457.4 MB, free: 33.15 MB / 410.7 MB Notification: Performance of SimCode: time 4.11e-07/0.2076, allocations: 0 / 457.4 MB, free: 33.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01413/0.2217, allocations: 1.684 MB / 459.1 MB, free: 32.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.739/6.961, allocations: 9.594 kB / 459.1 MB, free: 32.24 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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: 8.832166031002998]