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.0008489/0.0008489, allocations: 96.27 kB / 20.96 MB, free: 3.477 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.0009125/0.0009125, allocations: 156.9 kB / 24.26 MB, free: 176 kB / 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.8695/0.8695, allocations: 177 MB / 204.5 MB, free: 5.633 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.2392/0.2392, allocations: 34.25 MB / 295.2 MB, free: 0.6484 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.864e-06/1.864e-06, allocations: 0 / 376.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489e-05/1.675e-05, allocations: 6.312 kB / 376.7 MB, free: 3.434 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001233/0.00125, allocations: 491.6 kB / 377.2 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.003215, allocations: 2.077 MB / 379.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.435e-05/0.003229, allocations: 0 / 379.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.17e-05/0.003241, allocations: 0 / 379.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.873e-05/0.003259, allocations: 0 / 379.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008406/0.0041, allocations: 410.4 kB / 379.6 MB, free: 464 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.75e-05/0.004137, allocations: 4 kB / 379.6 MB, free: 460 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.133e-05/0.004169, allocations: 0 / 379.6 MB, free: 460 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.675e-05/0.004195, allocations: 3.984 kB / 379.6 MB, free: 456 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007703/0.0119, allocations: 3.389 MB / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.01192, allocations: 0 / 383 MB, free: 13.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.01199, allocations: 7.984 kB / 383 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.012, allocations: 0 / 383 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.964e-05/0.01202, allocations: 0 / 383 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.01214, allocations: 15.88 kB / 383.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01214, allocations: 4 kB / 383.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01215, allocations: 4 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.01215, allocations: 0 / 383.1 MB, free: 13.64 MB / 362.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.0002166/0.01237, allocations: 238.4 kB / 383.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.01241, allocations: 8.031 kB / 383.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.064e-05/0.01247, allocations: 110 kB / 383.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.01266, allocations: 88.2 kB / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.01276, allocations: 181.1 kB / 383.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.0128, allocations: 150.9 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.01284, allocations: 154.9 kB / 384 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.797e-05/0.0129, allocations: 101.5 kB / 384.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.01292, allocations: 79.47 kB / 384.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/0.01298, allocations: 158.6 kB / 384.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.317e-05/0.01302, allocations: 150.6 kB / 384.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.337e-05/0.01307, allocations: 150.6 kB / 384.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.0133, allocations: 417 kB / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.227e-05/0.01336, allocations: 169.1 kB / 385.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.422e-05/0.01339, allocations: 88.12 kB / 385.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.01341, allocations: 83.22 kB / 385.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.01344, allocations: 113.8 kB / 385.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.212e-06/0.01344, allocations: 4 kB / 385.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 6.132e-05/0.0135, allocations: 33.64 kB / 385.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.01357, allocations: 178.1 kB / 385.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.913e-05/0.01365, allocations: 89.86 kB / 385.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.01366, allocations: 25.7 kB / 385.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.365e-05/0.01368, allocations: 84.14 kB / 385.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-06/0.01368, allocations: 3.984 kB / 385.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.0137, allocations: 17.7 kB / 385.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.704e-05/0.01378, allocations: 314.8 kB / 386.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.688e-06/0.01378, allocations: 0 / 386.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.49e-05/0.01382, allocations: 69.19 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.254e-05/0.01384, allocations: 79.28 kB / 386.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.78e-05/0.01386, allocations: 75.28 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.874e-05/0.0139, allocations: 25.7 kB / 386.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.01393, allocations: 83.28 kB / 386.5 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.01395, allocations: 79.22 kB / 386.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.046e-05/0.01399, allocations: 158.5 kB / 386.7 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.561e-05/0.01401, allocations: 83.28 kB / 386.8 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.995e-05/0.01404, allocations: 154.5 kB / 387 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.489e-05/0.0141, allocations: 75.28 kB / 387 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.01412, allocations: 87.25 kB / 387.1 MB, free: 9.332 MB / 362.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 8.025e-05/0.0142, allocations: 256.4 kB / 387.4 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.693e-05/0.01424, allocations: 105 kB / 387.5 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.01427, allocations: 112.2 kB / 387.6 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-05/0.0143, allocations: 188.1 kB / 387.8 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.503e-05/0.01434, allocations: 180.3 kB / 388 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.321e-05/0.01437, allocations: 180.2 kB / 388.1 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.01451, allocations: 380.3 kB / 388.5 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.01453, allocations: 101 kB / 388.6 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.278e-05/0.01455, allocations: 104.9 kB / 388.7 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.693e-05/0.01459, allocations: 184.3 kB / 388.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.01463, allocations: 180.2 kB / 389.1 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.171e-05/0.01467, allocations: 188.2 kB / 389.2 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.341e-05/0.01472, allocations: 184.1 kB / 389.4 MB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.01483, allocations: 299.8 kB / 389.7 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.01486, allocations: 112.9 kB / 389.8 MB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.0149, allocations: 176.3 kB / 390 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.288e-05/0.01498, allocations: 112.9 kB / 390.1 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.01502, allocations: 180.3 kB / 390.3 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.01506, allocations: 101 kB / 390.4 MB, free: 5.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.993e-05/0.01509, allocations: 83.28 kB / 390.5 MB, free: 5.801 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01509, allocations: 0 / 390.5 MB, free: 5.801 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000166/0.01525, allocations: 0 / 390.5 MB, free: 5.801 MB / 362.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.0002813/0.01553, allocations: 0.8009 MB / 391.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 4.624e-05/0.01558, allocations: 4 kB / 391.3 MB, free: 4.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01558, allocations: 0 / 391.3 MB, free: 4.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.103e-06/0.01558, allocations: 0 / 391.3 MB, free: 4.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.01584, allocations: 471.6 kB / 391.7 MB, free: 4.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003503/0.01619, allocations: 183.2 kB / 391.9 MB, free: 4.281 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.697e-05/0.01623, allocations: 59.45 kB / 392 MB, free: 4.203 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.24e-05/0.01625, allocations: 0 / 392 MB, free: 4.203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.378e-05/0.01626, allocations: 8.5 kB / 392 MB, free: 4.195 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01626, allocations: 0 / 392 MB, free: 4.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01625/0.03251, allocations: 1.767 MB / 393.7 MB, free: 2.492 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.996/7.028, allocations: 7.875 kB / 393.8 MB, free: 2.484 MB / 362.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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv","/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.871592039242387]