Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009766/0.0009767, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 245.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007121/0.0007121, allocations: 99.19 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002001/0.0002001, allocations: 4 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.2001, allocations: 51.3 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09165/0.2918, allocations: 81.29 MB / 489.9 MB, free: 10.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.292, allocations: 75.95 kB / 490 MB, free: 10.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02316/0.3152, allocations: 9.165 MB / 499.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3153, allocations: 0 / 499.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.179e-05/0.3153, allocations: 8 kB / 499.2 MB, free: 0.9766 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001302/0.3166, allocations: 0.8106 MB / 0.4883 GB, free: 116 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3166, allocations: 12.03 kB / 0.4883 GB, free: 104 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.317, allocations: 104.1 kB / 0.4884 GB, free: 0 / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/0.3175, allocations: 377.9 kB / 0.4888 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.3175, allocations: 37.69 kB / 0.4888 GB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.3176, allocations: 52.28 kB / 0.4888 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008889/0.3185, allocations: 0.5504 MB / 0.4894 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3185, allocations: 192 / 0.4894 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.3186, allocations: 27.94 kB / 0.4894 GB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3186, allocations: 16 kB / 0.4894 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007994/0.3194, allocations: 455.7 kB / 0.4899 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00256/0.3219, allocations: 2.073 MB / 0.4919 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009055/0.3229, allocations: 0.6414 MB / 0.4925 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005747/0.3235, allocations: 405.7 kB / 0.4929 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.3235, allocations: 8.562 kB / 0.4929 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.3235, allocations: 39.12 kB / 0.4929 GB, free: 11.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 2.975e-06/0.3236, allocations: 0 / 0.4929 GB, free: 11.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.003881/0.3274, allocations: 2.001 MB / 0.4949 GB, free: 9.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.3275, allocations: 59.97 kB / 0.495 GB, free: 8.957 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.3278, allocations: 357.7 kB / 0.4953 GB, free: 8.602 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.3279, allocations: 41.7 kB / 0.4953 GB, free: 8.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.328, allocations: 225.2 kB / 0.4955 GB, free: 8.328 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.3282, allocations: 209 kB / 0.4957 GB, free: 8.121 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/0.3282, allocations: 8 kB / 0.4958 GB, free: 8.113 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3284, allocations: 358.7 kB / 0.4961 GB, free: 7.754 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.3287, allocations: 173 kB / 0.4963 GB, free: 7.582 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.329, allocations: 219.8 kB / 0.4965 GB, free: 7.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.3297, allocations: 396.8 kB / 0.4968 GB, free: 6.969 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3297, allocations: 0 / 0.4968 GB, free: 6.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001162/0.3309, allocations: 0.6734 MB / 0.4975 GB, free: 6.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3309, allocations: 8 kB / 0.4975 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3309, allocations: 0 / 0.4975 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006763/0.3316, allocations: 255.2 kB / 0.4978 GB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.3319, allocations: 67.89 kB / 0.4978 GB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1591/0.491, allocations: 6.766 MB / 0.5044 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.4914, allocations: 22.55 kB / 0.5045 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.4915, allocations: 15.72 kB / 0.5045 GB, free: 92.98 MB / 378.7 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 () * Number of clocked 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.0002226/0.4917, allocations: 173.5 kB / 0.5046 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.142e-05/0.4918, allocations: 50.41 kB / 0.5047 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.4919, allocations: 64.98 kB / 0.5047 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.4919, allocations: 6.438 kB / 0.5047 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4919, allocations: 2.062 kB / 0.5048 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4919, allocations: 3.281 kB / 0.5048 GB, free: 92.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.494, allocations: 1.357 MB / 0.5061 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.494, allocations: 0 / 0.5061 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.4943, allocations: 61.38 kB / 0.5061 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000649/0.495, allocations: 255.5 kB / 0.5064 GB, free: 92.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.495, allocations: 17.78 kB / 0.5064 GB, free: 92.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004774/0.4998, allocations: 6.782 MB / 0.513 GB, free: 87.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4999, allocations: 0.5 kB / 0.513 GB, free: 87.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.5016, allocations: 1.046 MB / 0.514 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.5018, allocations: 156.8 kB / 0.5142 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.5018, allocations: 11.56 kB / 0.5142 GB, free: 86.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.5021, allocations: 23.73 kB / 0.5142 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.5022, allocations: 57.48 kB / 0.5143 GB, free: 86.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.725e-05/0.5023, allocations: 16.81 kB / 0.5143 GB, free: 86.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002255/0.5025, allocations: 254 kB / 0.5145 GB, free: 86.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5025, allocations: 0 / 0.5145 GB, free: 86.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007751/0.5033, allocations: 184.5 kB / 0.5147 GB, free: 86.57 MB / 378.7 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 () * Number of clocked 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.0001282/0.5034, allocations: 112.7 kB / 0.5148 GB, free: 86.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.5046, allocations: 1.051 MB / 0.5158 GB, free: 85.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5046, allocations: 0 / 0.5158 GB, free: 85.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007894/0.5054, allocations: 0.8387 MB / 0.5167 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.5059, allocations: 87.03 kB / 0.5168 GB, free: 85.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.5077, allocations: 1.561 MB / 0.5183 GB, free: 84.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.5079, allocations: 0.8748 MB / 0.5191 GB, free: 83.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.508, allocations: 37.69 kB / 0.5192 GB, free: 83.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.508, allocations: 0 / 0.5192 GB, free: 83.54 MB / 378.7 MB Notification: Performance of Templates: time 0.01051/0.5185, allocations: 13.76 MB / 0.5326 GB, free: 75.04 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches