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.002034/0.002034, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002514/0.002514, allocations: 213.5 kB / 24.52 MB, free: 3.918 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.523/1.523, allocations: 230.5 MB / 258.2 MB, free: 7.77 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.2359/0.2359, allocations: 46.95 MB / 361.6 MB, free: 3.93 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.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002388/0.002388, allocations: 83.86 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3615, allocations: 66.09 MB / 0.5614 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001652/0.3631, allocations: 481.1 kB / 0.5619 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003394/0.3665, allocations: 2.065 MB / 0.5639 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.3665, allocations: 4 kB / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.208e-05/0.3665, allocations: 0 / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.113e-05/0.3665, allocations: 0 / 0.5639 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.3677, allocations: 402.7 kB / 0.5643 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.326e-05/0.3677, allocations: 4 kB / 0.5643 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.973e-05/0.3678, allocations: 4 kB / 0.5643 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.431e-05/0.3678, allocations: 0 / 0.5643 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02051/0.3883, allocations: 3.385 MB / 0.5676 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.3883, allocations: 3.938 kB / 0.5676 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.3884, allocations: 4 kB / 0.5676 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.31e-05/0.3884, allocations: 0 / 0.5676 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.3885, allocations: 7.938 kB / 0.5676 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.3887, allocations: 15.98 kB / 0.5676 GB, free: 14.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3887, allocations: 0 / 0.5676 GB, free: 14.29 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3887, allocations: 0 / 0.5676 GB, free: 14.29 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.3887, allocations: 0 / 0.5676 GB, free: 14.29 MB / 414.1 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.0003545/0.389, allocations: 234.4 kB / 0.5678 GB, free: 14.03 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.3891, allocations: 16.02 kB / 0.5679 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.185e-05/0.3891, allocations: 79.47 kB / 0.5679 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.121e-05/0.3892, allocations: 106 kB / 0.568 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.3895, allocations: 84.22 kB / 0.5681 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.3896, allocations: 185.8 kB / 0.5683 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-05/0.3897, allocations: 154.9 kB / 0.5684 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/0.3898, allocations: 154.9 kB / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.27e-05/0.3899, allocations: 104.9 kB / 0.5687 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.3899, allocations: 79.22 kB / 0.5688 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.722e-05/0.39, allocations: 150.6 kB / 0.5689 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.919e-05/0.3901, allocations: 158.6 kB / 0.5691 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.723e-05/0.3902, allocations: 150.6 kB / 0.5692 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.3905, allocations: 409 kB / 0.5696 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.3906, allocations: 173.1 kB / 0.5698 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.042e-05/0.3906, allocations: 84.08 kB / 0.5698 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.154e-05/0.3907, allocations: 79.22 kB / 0.5699 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.782e-05/0.3908, allocations: 117.8 kB / 0.57 GB, free: 11.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.3908, allocations: 0 / 0.57 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.331e-05/0.3908, allocations: 29.64 kB / 0.5701 GB, free: 11.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.391, allocations: 178.1 kB / 0.5702 GB, free: 11.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.3911, allocations: 97.86 kB / 0.5703 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.3911, allocations: 25.7 kB / 0.5703 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.977e-05/0.3912, allocations: 80.14 kB / 0.5704 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.272e-06/0.3912, allocations: 3.984 kB / 0.5704 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/0.3912, allocations: 17.66 kB / 0.5704 GB, free: 11.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3914, allocations: 311 kB / 0.5707 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.261e-06/0.3914, allocations: 7.938 kB / 0.5707 GB, free: 10.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.286e-05/0.3914, allocations: 69.11 kB / 0.5708 GB, free: 10.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.841e-05/0.3915, allocations: 75.28 kB / 0.5709 GB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.231e-05/0.3915, allocations: 75.28 kB / 0.571 GB, free: 10.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.423e-05/0.3916, allocations: 37.64 kB / 0.571 GB, free: 10.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.328e-05/0.3917, allocations: 79.28 kB / 0.5711 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.44e-05/0.3917, allocations: 83.22 kB / 0.5711 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.16e-05/0.3918, allocations: 154.6 kB / 0.5713 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.434e-05/0.3918, allocations: 75.28 kB / 0.5714 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-05/0.3919, allocations: 162.5 kB / 0.5715 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.899e-05/0.392, allocations: 79.31 kB / 0.5716 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.392, allocations: 83.22 kB / 0.5717 GB, free: 9.891 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: 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 0.0001945/0.3922, allocations: 265.5 kB / 0.5719 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.3923, allocations: 104.9 kB / 0.572 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.065e-05/0.3924, allocations: 111.8 kB / 0.5721 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/0.3925, allocations: 184.2 kB / 0.5723 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000104/0.3926, allocations: 176.3 kB / 0.5725 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-05/0.3927, allocations: 184.2 kB / 0.5727 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.393, allocations: 372.3 kB / 0.573 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.932e-05/0.3931, allocations: 108.9 kB / 0.5731 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.353e-05/0.3931, allocations: 108.9 kB / 0.5732 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.3932, allocations: 176.3 kB / 0.5734 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.3933, allocations: 188.2 kB / 0.5736 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.981e-05/0.3934, allocations: 176.3 kB / 0.5737 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.076e-05/0.3935, allocations: 188.2 kB / 0.5739 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000212/0.3937, allocations: 304.2 kB / 0.5742 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.37e-05/0.3938, allocations: 108.9 kB / 0.5743 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3939, allocations: 188.3 kB / 0.5745 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.394, allocations: 108.9 kB / 0.5746 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.3941, allocations: 180.3 kB / 0.5748 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.109e-05/0.3942, allocations: 105 kB / 0.5749 GB, free: 6.426 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.896e-05/0.3942, allocations: 79.28 kB / 0.5749 GB, free: 6.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3942, allocations: 0 / 0.5749 GB, free: 6.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002624/0.3945, allocations: 4 kB / 0.5749 GB, free: 6.344 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: 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.0005187/0.395, allocations: 0.8047 MB / 0.5757 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.788e-05/0.395, allocations: 0 / 0.5757 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.395, allocations: 0 / 0.5757 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.395, allocations: 3.938 kB / 0.5757 GB, free: 5.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.3955, allocations: 459.6 kB / 0.5762 GB, free: 5.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004245/0.3959, allocations: 186.1 kB / 0.5763 GB, free: 4.828 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.409e-05/0.3959, allocations: 59.3 kB / 0.5764 GB, free: 4.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.536e-05/0.396, allocations: 3.984 kB / 0.5764 GB, free: 4.746 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.396, allocations: 7.438 kB / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.396, allocations: 0 / 0.5764 GB, free: 4.738 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.4174, allocations: 1.211 MB / 0.5776 GB, free: 3.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.75, allocations: 14.91 kB / 0.5776 GB, free: 3.629 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/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: 14.721695806016214]