Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.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) 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(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009456/0.0009457, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000871/0.0008711, allocations: 97.52 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.523e-05/1.524e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08046, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3663, allocations: 79.8 MB / 467.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.3665, allocations: 67.95 kB / 467.3 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02367/0.3902, allocations: 9.039 MB / 476.4 MB, free: 5.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3902, allocations: 0 / 476.4 MB, free: 5.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.697e-05/0.3903, allocations: 16 kB / 476.4 MB, free: 5.875 MB / 346.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.00111/0.3914, allocations: 0.7524 MB / 477.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.3914, allocations: 8.031 kB / 477.1 MB, free: 5.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.3916, allocations: 67.25 kB / 477.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.392, allocations: 359.4 kB / 477.6 MB, free: 4.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.3921, allocations: 19.95 kB / 477.6 MB, free: 4.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.343e-05/0.3921, allocations: 32 kB / 477.6 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006324/0.3928, allocations: 378.4 kB / 478 MB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.3935, allocations: 444.6 kB / 478.4 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3935, allocations: 7.938 kB / 478.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.3935, allocations: 0 / 478.4 MB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3936, allocations: 12 kB / 478.4 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.3962, allocations: 1.971 MB / 480.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007149/0.3969, allocations: 0.5816 MB / 481 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000444/0.3973, allocations: 357.9 kB / 481.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.3974, allocations: 8.547 kB / 481.3 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.3974, allocations: 43.11 kB / 481.4 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 2.084e-06/0.3974, allocations: 0 / 481.4 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.001857/0.3993, allocations: 1.135 MB / 482.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.3993, allocations: 59.97 kB / 482.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.3996, allocations: 270.4 kB / 482.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.3997, allocations: 25.7 kB / 482.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.3998, allocations: 232.9 kB / 483.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.3999, allocations: 193.1 kB / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.4, allocations: 0 / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.4001, allocations: 358.8 kB / 483.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.4003, allocations: 133.1 kB / 483.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.4006, allocations: 182.7 kB / 483.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.4008, allocations: 154.1 kB / 484.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4008, allocations: 0 / 484.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009161/0.4017, allocations: 0.572 MB / 484.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.4018, allocations: 8.75 kB / 484.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.4018, allocations: 0 / 484.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006369/0.4024, allocations: 251.8 kB / 484.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.4027, allocations: 67.89 kB / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005357/0.4081, allocations: 6.526 MB / 491.5 MB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.4084, allocations: 8.031 kB / 491.5 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.4085, allocations: 12 kB / 491.5 MB, free: 5.883 MB / 362.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 () * 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.0001332/0.4086, allocations: 120.9 kB / 491.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.4087, allocations: 51.44 kB / 491.7 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.4088, allocations: 53.06 kB / 491.8 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4088, allocations: 8 kB / 491.8 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4089, allocations: 3.938 kB / 491.8 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4089, allocations: 3.984 kB / 491.8 MB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.4106, allocations: 1.17 MB / 492.9 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.4106, allocations: 4 kB / 492.9 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.4109, allocations: 55.95 kB / 493 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.4115, allocations: 255.3 kB / 493.2 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.4115, allocations: 0 / 493.2 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005287/0.4168, allocations: 6.52 MB / 499.8 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4168, allocations: 0 / 499.8 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.4182, allocations: 0.9196 MB / 0.489 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.4184, allocations: 156.5 kB / 0.4891 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.4184, allocations: 3.953 kB / 0.4891 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.4187, allocations: 11.98 kB / 0.4891 GB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.4188, allocations: 48.48 kB / 0.4892 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.4189, allocations: 16 kB / 0.4892 GB, free: 11.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002134/0.4191, allocations: 220.6 kB / 0.4894 GB, free: 11.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4191, allocations: 0 / 0.4894 GB, free: 11.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008992/0.42, allocations: 152 kB / 0.4895 GB, free: 11.54 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 () * 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.0002046/0.4202, allocations: 103.2 kB / 0.4896 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.4216, allocations: 0.9296 MB / 0.4905 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4216, allocations: 0 / 0.4905 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008646/0.4225, allocations: 0.7661 MB / 0.4913 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.4229, allocations: 62.34 kB / 0.4913 GB, free: 9.598 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.4246, allocations: 0.9487 MB / 0.4923 GB, free: 8.629 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.425, allocations: 0.8944 MB / 0.4931 GB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.4252, allocations: 48.34 kB / 0.4932 GB, free: 7.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.614e-05/0.4253, allocations: 27.44 kB / 0.4932 GB, free: 7.625 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4253, allocations: 0 / 0.4932 GB, free: 7.625 MB / 378.7 MB Notification: Performance of Templates: time 0.0115/0.4368, allocations: 7.054 MB / 0.5001 GB, free: 0.6172 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches