Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.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) 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(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002134/0.002133, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 93.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.526e-05, allocations: 4 kB / 314.8 MB, free: 9.141 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3617, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.4908, allocations: 78.23 MB / 440.6 MB, free: 8.074 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.4912, allocations: 63.97 kB / 440.6 MB, free: 8.012 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03779/0.529, allocations: 8.742 MB / 449.4 MB, free: 15.27 MB / 347.1 MB Notification: Performance of FrontEnd: time 6.672e-06/0.529, allocations: 0 / 449.4 MB, free: 15.27 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.562e-05/0.5291, allocations: 17.58 kB / 449.4 MB, free: 15.26 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001864/0.531, allocations: 0.7593 MB / 450.1 MB, free: 14.45 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.531, allocations: 8.031 kB / 450.2 MB, free: 14.45 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.5312, allocations: 63.25 kB / 450.2 MB, free: 14.38 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007117/0.5319, allocations: 367.4 kB / 450.6 MB, free: 13.98 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-05/0.532, allocations: 16 kB / 450.6 MB, free: 13.97 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.5321, allocations: 31.98 kB / 450.6 MB, free: 13.94 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001152/0.5333, allocations: 374.6 kB / 451 MB, free: 13.57 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.5345, allocations: 444.5 kB / 451.4 MB, free: 13.11 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.5345, allocations: 0 / 451.4 MB, free: 13.11 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.5346, allocations: 0.5625 kB / 451.4 MB, free: 13.11 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.5346, allocations: 12 kB / 451.4 MB, free: 13.1 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004429/0.539, allocations: 1.989 MB / 453.4 MB, free: 11.04 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.5403, allocations: 0.5747 MB / 454 MB, free: 10.43 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007911/0.5411, allocations: 357.9 kB / 454.3 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.138e-05/0.5412, allocations: 8.562 kB / 454.4 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.5412, allocations: 40.7 kB / 454.4 MB, free: 10.02 MB / 347.1 MB Notification: Performance of pre-optimization done (n=60): time 3.277e-06/0.5413, allocations: 0 / 454.4 MB, free: 10.02 MB / 347.1 MB Notification: Performance of matching and sorting (n=61): time 0.003065/0.5443, allocations: 1.139 MB / 455.5 MB, free: 8.82 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.5444, allocations: 59.97 kB / 455.6 MB, free: 8.746 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004484/0.5449, allocations: 270.4 kB / 455.9 MB, free: 8.48 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.5449, allocations: 25.7 kB / 455.9 MB, free: 8.449 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.5451, allocations: 279.4 kB / 456.2 MB, free: 8.172 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.5454, allocations: 193.1 kB / 456.3 MB, free: 7.98 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.5454, allocations: 0 / 456.3 MB, free: 7.98 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.5456, allocations: 346.8 kB / 456.7 MB, free: 7.633 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.546, allocations: 133.1 kB / 456.8 MB, free: 7.504 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.5464, allocations: 178.8 kB / 457 MB, free: 7.324 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/0.5469, allocations: 150.1 kB / 457.1 MB, free: 7.176 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5469, allocations: 0 / 457.1 MB, free: 7.176 MB / 347.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001633/0.5485, allocations: 0.5527 MB / 457.7 MB, free: 6.605 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.5486, allocations: 9.25 kB / 457.7 MB, free: 6.598 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.5486, allocations: 0 / 457.7 MB, free: 6.598 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.5497, allocations: 250.8 kB / 457.9 MB, free: 6.344 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005423/0.5503, allocations: 63.91 kB / 458 MB, free: 6.281 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009052/0.5594, allocations: 6.523 MB / 464.5 MB, free: 15.3 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.5599, allocations: 12.02 kB / 464.5 MB, free: 15.29 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.288e-05/0.56, allocations: 12 kB / 464.5 MB, free: 15.27 MB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.5602, allocations: 113.6 kB / 464.7 MB, free: 15.16 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.5604, allocations: 52.06 kB / 464.7 MB, free: 15.11 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001596/0.5605, allocations: 53.06 kB / 464.8 MB, free: 15.05 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.5606, allocations: 8 kB / 464.8 MB, free: 15.05 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.5606, allocations: 0 / 464.8 MB, free: 15.05 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.5606, allocations: 7.938 kB / 464.8 MB, free: 15.04 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.5635, allocations: 1.181 MB / 466 MB, free: 13.8 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.5636, allocations: 4.656 kB / 466 MB, free: 13.8 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005631/0.5641, allocations: 55.91 kB / 466 MB, free: 13.74 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.5652, allocations: 245 kB / 466.3 MB, free: 13.49 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.216e-05/0.5653, allocations: 3.984 kB / 466.3 MB, free: 13.49 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008828/0.5741, allocations: 6.528 MB / 472.8 MB, free: 6.504 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5742, allocations: 0 / 472.8 MB, free: 6.504 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.5766, allocations: 0.9157 MB / 473.7 MB, free: 5.559 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.5769, allocations: 160.5 kB / 473.9 MB, free: 5.383 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.577, allocations: 0 / 473.9 MB, free: 5.383 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004528/0.5775, allocations: 11.94 kB / 473.9 MB, free: 5.371 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/0.5777, allocations: 52.56 kB / 473.9 MB, free: 5.32 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-05/0.5778, allocations: 19.98 kB / 473.9 MB, free: 5.301 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.5781, allocations: 212.6 kB / 474.1 MB, free: 5.094 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5781, allocations: 4 kB / 474.2 MB, free: 5.09 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001244/0.5794, allocations: 152.1 kB / 474.3 MB, free: 4.941 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002227/0.5796, allocations: 109.1 kB / 474.4 MB, free: 4.828 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002154/0.5818, allocations: 0.9341 MB / 475.3 MB, free: 3.852 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5818, allocations: 0 / 475.3 MB, free: 3.852 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.5834, allocations: 0.7661 MB / 476.1 MB, free: 3.047 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006184/0.584, allocations: 49.19 kB / 476.2 MB, free: 2.996 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.5872, allocations: 0.9869 MB / 477.1 MB, free: 1.98 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.5879, allocations: 0.8828 MB / 478 MB, free: 1.07 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.5881, allocations: 35.44 kB / 478.1 MB, free: 1.035 MB / 363.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5881, allocations: 0 / 478.1 MB, free: 1.035 MB / 363.1 MB Notification: Performance of Templates: time 0.02599/0.6141, allocations: 13.04 MB / 491.1 MB, free: 4 MB / 379.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches