Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002338/0.002338, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3381/0.3381, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.989e-05/3.005e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 58.86 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5575/0.6692, allocations: 87.22 MB / 0.558 GB, free: 400 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.6695, allocations: 63.2 kB / 0.558 GB, free: 372 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02838/0.6979, allocations: 4.289 MB / 0.5622 GB, free: 12.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.698, allocations: 0 / 0.5622 GB, free: 12.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.341e-05/0.698, allocations: 8 kB / 0.5622 GB, free: 12.71 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001791/0.6999, allocations: 0.531 MB / 0.5627 GB, free: 12.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.6999, allocations: 8.031 kB / 0.5627 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.7002, allocations: 39.58 kB / 0.5628 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009731/0.7011, allocations: 313.3 kB / 0.5631 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.7012, allocations: 25.69 kB / 0.5631 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.7014, allocations: 34.22 kB / 0.5631 GB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009594/0.7024, allocations: 240.8 kB / 0.5634 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.7024, allocations: 0 / 0.5634 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.7025, allocations: 13.86 kB / 0.5634 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/0.7025, allocations: 11.95 kB / 0.5634 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007015/0.7033, allocations: 155.2 kB / 0.5635 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.7063, allocations: 0.7908 MB / 0.5643 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000786/0.7071, allocations: 185.4 kB / 0.5645 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.7075, allocations: 87.53 kB / 0.5646 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.7076, allocations: 4.438 kB / 0.5646 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007436/0.7084, allocations: 212.8 kB / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 5.541e-06/0.7084, allocations: 0 / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001148/0.7096, allocations: 256.9 kB / 0.565 GB, free: 10.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.449e-05/0.7097, allocations: 59.09 kB / 0.5651 GB, free: 10.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.7102, allocations: 205.1 kB / 0.5653 GB, free: 9.969 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.7103, allocations: 36.5 kB / 0.5653 GB, free: 9.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.7105, allocations: 223.3 kB / 0.5655 GB, free: 9.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.7107, allocations: 96.88 kB / 0.5656 GB, free: 9.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.7108, allocations: 6.938 kB / 0.5656 GB, free: 9.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.711, allocations: 330.8 kB / 0.5659 GB, free: 9.332 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.7114, allocations: 76.56 kB / 0.566 GB, free: 9.281 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.7119, allocations: 214.1 kB / 0.5662 GB, free: 9.047 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.7123, allocations: 118.4 kB / 0.5663 GB, free: 8.961 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.7123, allocations: 4 kB / 0.5663 GB, free: 8.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001175/0.7135, allocations: 320.3 kB / 0.5666 GB, free: 8.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.7136, allocations: 4 kB / 0.5666 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.7136, allocations: 4 kB / 0.5666 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.91e-05/0.7137, allocations: 8 kB / 0.5667 GB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.7145, allocations: 87.98 kB / 0.5667 GB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-05/0.7145, allocations: 4 kB / 0.5667 GB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004999/0.7151, allocations: 39.08 kB / 0.5668 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.074e-05/0.7151, allocations: 19.25 kB / 0.5668 GB, free: 8.555 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.000239/0.7154, allocations: 137.1 kB / 0.5669 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.7155, allocations: 27.62 kB / 0.567 GB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.7168, allocations: 301.5 kB / 0.5672 GB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.7169, allocations: 4 kB / 0.5672 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.7169, allocations: 4 kB / 0.5672 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.7169, allocations: 0 / 0.5672 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.7189, allocations: 0.6839 MB / 0.5679 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/0.7189, allocations: 3.984 kB / 0.5679 GB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007385/0.7197, allocations: 55.91 kB / 0.568 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.7197, allocations: 0 / 0.568 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.2e-05/0.7198, allocations: 7.5 kB / 0.568 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.116e-05/0.7198, allocations: 4 kB / 0.568 GB, free: 7.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.7199, allocations: 3.984 kB / 0.568 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.7215, allocations: 495.9 kB / 0.5685 GB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.7217, allocations: 100.9 kB / 0.5686 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.7219, allocations: 15 kB / 0.5686 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.7223, allocations: 15.92 kB / 0.5686 GB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.7225, allocations: 27.39 kB / 0.5686 GB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/0.7226, allocations: 11.98 kB / 0.5686 GB, free: 6.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003481/0.7229, allocations: 168.6 kB / 0.5688 GB, free: 6.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7229, allocations: 0 / 0.5688 GB, free: 6.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009328/0.7239, allocations: 73.38 kB / 0.5689 GB, free: 6.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003052/0.7242, allocations: 116.5 kB / 0.569 GB, free: 6.613 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.7252, allocations: 233.9 kB / 0.5692 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.7253, allocations: 4 kB / 0.5692 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004802/0.7258, allocations: 122.7 kB / 0.5693 GB, free: 6.352 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.7264, allocations: 27.62 kB / 0.5693 GB, free: 6.332 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.7282, allocations: 477.5 kB / 0.5698 GB, free: 5.895 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/0.7289, allocations: 0.7915 MB / 0.5706 GB, free: 5.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.7292, allocations: 35.23 kB / 0.5706 GB, free: 5.047 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/0.7292, allocations: 0 / 0.5706 GB, free: 5.047 MB / 378.7 MB Notification: Performance of Templates: time 0.01305/0.7423, allocations: 3.441 MB / 0.574 GB, free: 1.648 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches