Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001071, allocations: 100.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009353/0.0009353, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2705, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003723/0.2742, allocations: 4.285 MB / 411.3 MB, free: 23.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.2755, allocations: 0.9774 MB / 412.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.2757, allocations: 8 kB / 412.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.2759, allocations: 71.44 kB / 412.4 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.2763, allocations: 170.6 kB / 412.6 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.2766, allocations: 135.9 kB / 412.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004939/0.2771, allocations: 0.7282 MB / 413.4 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002963/0.2774, allocations: 196.1 kB / 413.6 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002931/0.2777, allocations: 266.9 kB / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002599/0.278, allocations: 318.5 kB / 414.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.055e-05/0.278, allocations: 40 kB / 414.2 MB, free: 20.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.2781, allocations: 48 kB / 414.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2783, allocations: 131.4 kB / 414.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.2785, allocations: 306.4 kB / 414.7 MB, free: 20.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004101/0.2789, allocations: 0.6772 MB / 415.4 MB, free: 19.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2789, allocations: 0 / 415.4 MB, free: 19.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.031e-06/0.2789, allocations: 0 / 415.4 MB, free: 19.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2789, allocations: 0 / 415.4 MB, free: 19.47 MB / 298.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.001256/0.2802, allocations: 0.9119 MB / 416.3 MB, free: 18.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.2802, allocations: 8.594 kB / 416.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.2806, allocations: 104 kB / 416.4 MB, free: 18.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.2809, allocations: 382 kB / 416.8 MB, free: 17.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.281, allocations: 37.69 kB / 416.8 MB, free: 17.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.281, allocations: 52.38 kB / 416.9 MB, free: 17.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.2818, allocations: 0.5415 MB / 417.4 MB, free: 17.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.2818, allocations: 4 kB / 417.4 MB, free: 17.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.2818, allocations: 20 kB / 417.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2819, allocations: 16 kB / 417.4 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006806/0.2825, allocations: 447.7 kB / 417.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.2846, allocations: 2.038 MB / 419.9 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007579/0.2854, allocations: 0.6468 MB / 420.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.2859, allocations: 398.2 kB / 420.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.2859, allocations: 12.55 kB / 421 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.286, allocations: 39.12 kB / 421 MB, free: 13.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 2.605e-06/0.286, allocations: 0 / 421 MB, free: 13.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.003902/0.2899, allocations: 2.04 MB / 423 MB, free: 11.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.2899, allocations: 55.97 kB / 423.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.2902, allocations: 365.6 kB / 423.4 MB, free: 11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.2903, allocations: 33.7 kB / 423.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2904, allocations: 237.1 kB / 423.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.636e-05/0.2905, allocations: 201 kB / 423.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.2906, allocations: 90.25 kB / 424 MB, free: 10.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.669e-05/0.2907, allocations: 358.8 kB / 424.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.291, allocations: 165 kB / 424.5 MB, free: 9.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.2913, allocations: 211.8 kB / 424.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005534/0.2918, allocations: 380.9 kB / 425.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2918, allocations: 0 / 425.1 MB, free: 9.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009954/0.2929, allocations: 0.6734 MB / 425.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.2929, allocations: 11.88 kB / 425.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2929, allocations: 3.984 kB / 425.8 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006637/0.2936, allocations: 255.2 kB / 426 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/0.2939, allocations: 59.95 kB / 426.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004674/0.2985, allocations: 6.777 MB / 432.9 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.2989, allocations: 12 kB / 432.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.2989, allocations: 19.98 kB / 432.9 MB, free: 0.9531 MB / 298.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 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000271/0.2992, allocations: 170.4 kB / 433.1 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.779e-05/0.2993, allocations: 55.34 kB / 433.1 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.2994, allocations: 64.95 kB / 433.2 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2994, allocations: 4.469 kB / 433.2 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.971e-05/0.2994, allocations: 16.05 kB / 433.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2995, allocations: 0 / 433.2 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.3015, allocations: 1.333 MB / 434.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3015, allocations: 0 / 434.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.3018, allocations: 63.89 kB / 434.6 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000649/0.3025, allocations: 255.1 kB / 434.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.3025, allocations: 12 kB / 434.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006506/0.309, allocations: 6.778 MB / 441.6 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3091, allocations: 0 / 441.6 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01346/0.3225, allocations: 11.38 MB / 453 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.3228, allocations: 164.5 kB / 453.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.136e-05/0.3228, allocations: 12 kB / 453.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.3231, allocations: 19.98 kB / 453.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.3233, allocations: 56.45 kB / 453.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3233, allocations: 20.06 kB / 453.3 MB, free: 11.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002579/0.3236, allocations: 251.2 kB / 453.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3236, allocations: 0 / 453.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001209/0.3248, allocations: 252 kB / 453.8 MB, free: 10.7 MB / 330.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001799/0.325, allocations: 119.2 kB / 453.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3266, allocations: 1.021 MB / 454.9 MB, free: 9.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.3266, allocations: 8 kB / 454.9 MB, free: 9.488 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3277, allocations: 0.8335 MB / 455.7 MB, free: 8.605 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.3283, allocations: 92.22 kB / 455.8 MB, free: 8.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.3315, allocations: 2.417 MB / 458.2 MB, free: 6.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.3319, allocations: 0.9031 MB / 459.2 MB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.3321, allocations: 52.53 kB / 459.2 MB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.3322, allocations: 31.44 kB / 459.2 MB, free: 5.004 MB / 330.7 MB Notification: Performance of SimCode: time 1.723e-06/0.3322, allocations: 0 / 459.2 MB, free: 5.004 MB / 330.7 MB Notification: Performance of Templates: time 0.0168/0.349, allocations: 10.49 MB / 469.7 MB, free: 10.58 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches