Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001036, allocations: 183 kB / 18.09 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 242.1 MB, free: 11.61 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 103.4 kB / 293.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3314/0.3314, allocations: 44.16 MB / 388.5 MB, free: 38.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003839, allocations: 15.98 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3918, allocations: 61.89 MB / 0.5107 GB, free: 38.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.5074, allocations: 88.6 MB / 0.5973 GB, free: 6.465 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.5077, allocations: 67.95 kB / 0.5973 GB, free: 6.402 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01685/0.5245, allocations: 6.148 MB / 0.6033 GB, free: 256 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5246, allocations: 0 / 0.6033 GB, free: 256 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.5246, allocations: 0 / 0.6033 GB, free: 256 kB / 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.000461/0.5251, allocations: 419.3 kB / 0.6037 GB, free: 15.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.5251, allocations: 15.97 kB / 0.6037 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.5253, allocations: 88.22 kB / 0.6038 GB, free: 15.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.5255, allocations: 239.7 kB / 0.604 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.5255, allocations: 154.9 kB / 0.6042 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.686e-05/0.5256, allocations: 150.9 kB / 0.6043 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.868e-05/0.5257, allocations: 101.5 kB / 0.6044 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.5257, allocations: 83.41 kB / 0.6045 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.428e-05/0.5258, allocations: 154.5 kB / 0.6047 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-05/0.5258, allocations: 150.6 kB / 0.6048 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.185e-05/0.5259, allocations: 158.5 kB / 0.605 GB, free: 14.47 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002806/0.5262, allocations: 442 kB / 0.6054 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.91e-05/0.5263, allocations: 173.1 kB / 0.6055 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.738e-05/0.5264, allocations: 84.12 kB / 0.6056 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.5264, allocations: 79.28 kB / 0.6057 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.5265, allocations: 109.8 kB / 0.6058 GB, free: 13.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 3.126e-06/0.5265, allocations: 0 / 0.6058 GB, free: 13.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 8.258e-05/0.5266, allocations: 33.58 kB / 0.6058 GB, free: 13.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.5266, allocations: 182.1 kB / 0.606 GB, free: 13.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.5267, allocations: 89.86 kB / 0.6061 GB, free: 13.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.5268, allocations: 29.83 kB / 0.6061 GB, free: 13.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.957e-05/0.5268, allocations: 80.14 kB / 0.6062 GB, free: 13.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.566e-06/0.5268, allocations: 0 / 0.6062 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-07/0.5268, allocations: 7.938 kB / 0.6062 GB, free: 13.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.527, allocations: 318.8 kB / 0.6065 GB, free: 12.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.246e-06/0.527, allocations: 0 / 0.6065 GB, free: 12.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.322e-05/0.527, allocations: 9.719 kB / 0.6065 GB, free: 12.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.062e-05/0.527, allocations: 75.28 kB / 0.6066 GB, free: 12.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-05/0.5271, allocations: 83.31 kB / 0.6067 GB, free: 12.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.453e-05/0.5271, allocations: 29.64 kB / 0.6067 GB, free: 12.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.5272, allocations: 83.28 kB / 0.6068 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.5272, allocations: 83.22 kB / 0.6069 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.47e-05/0.5273, allocations: 154.5 kB / 0.607 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.634e-05/0.5273, allocations: 75.28 kB / 0.6071 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.166e-05/0.5274, allocations: 162.5 kB / 0.6072 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.5275, allocations: 83.33 kB / 0.6073 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.5275, allocations: 83.28 kB / 0.6074 GB, free: 11.82 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.5277, allocations: 256.4 kB / 0.6076 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.516e-05/0.5277, allocations: 104.9 kB / 0.6077 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.5278, allocations: 116 kB / 0.6078 GB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-05/0.5278, allocations: 184.3 kB / 0.608 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.708e-05/0.5279, allocations: 180.2 kB / 0.6082 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.987e-05/0.528, allocations: 180.3 kB / 0.6084 GB, free: 10.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.5282, allocations: 401.2 kB / 0.6087 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.463e-05/0.5283, allocations: 101 kB / 0.6088 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-05/0.5283, allocations: 112.9 kB / 0.609 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.183e-05/0.5284, allocations: 180.3 kB / 0.6091 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.754e-05/0.5285, allocations: 180.2 kB / 0.6093 GB, free: 9.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.849e-05/0.5286, allocations: 184.2 kB / 0.6095 GB, free: 9.547 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.216e-05/0.5286, allocations: 180.2 kB / 0.6096 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.5288, allocations: 307.8 kB / 0.6099 GB, free: 9.039 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.32e-05/0.5288, allocations: 186.1 kB / 0.6101 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.5289, allocations: 188.1 kB / 0.6103 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.689e-05/0.529, allocations: 105.4 kB / 0.6104 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.5291, allocations: 184.2 kB / 0.6106 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.5291, allocations: 105 kB / 0.6107 GB, free: 8.234 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.486e-05/0.5292, allocations: 83.27 kB / 0.6108 GB, free: 8.152 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5292, allocations: 0 / 0.6108 GB, free: 8.152 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005146/0.5297, allocations: 135.8 kB / 0.6109 GB, free: 8.02 MB / 426.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.5307, allocations: 0.5093 MB / 0.6114 GB, free: 7.566 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 4.981e-05/0.5308, allocations: 4 kB / 0.6114 GB, free: 7.562 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5308, allocations: 0 / 0.6114 GB, free: 7.562 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.252e-06/0.5308, allocations: 3.938 kB / 0.6114 GB, free: 7.559 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.5313, allocations: 0.5259 MB / 0.6119 GB, free: 7.031 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002287/0.5315, allocations: 150 kB / 0.612 GB, free: 6.855 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.5318, allocations: 0.6731 MB / 0.6127 GB, free: 6.156 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.923e-05/0.5318, allocations: 0 / 0.6127 GB, free: 6.156 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.5319, allocations: 11.44 kB / 0.6127 GB, free: 6.145 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5319, allocations: 0 / 0.6127 GB, free: 6.145 MB / 426.7 MB Notification: Performance of Templates: time 0.005662/0.5375, allocations: 2.584 MB / 0.6152 GB, free: 3.562 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches