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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001225, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.9 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 60.81 kB / 306.9 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08905, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005283/0.09437, allocations: 4.297 MB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.09637, allocations: 1.02 MB / 362.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000473/0.09687, allocations: 11.94 kB / 362.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003313/0.09728, allocations: 75.38 kB / 362.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006494/0.09794, allocations: 170.7 kB / 363 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.09838, allocations: 159.8 kB / 363.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008458/0.09923, allocations: 0.7166 MB / 363.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003459/0.09959, allocations: 196.2 kB / 364.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004609/0.1001, allocations: 258.9 kB / 364.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004393/0.1005, allocations: 322.5 kB / 364.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.1006, allocations: 40 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.1008, allocations: 48 kB / 364.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1009, allocations: 135.4 kB / 364.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003148/0.1013, allocations: 314.3 kB / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.1017, allocations: 0.5143 MB / 365.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1017, allocations: 4 kB / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1017, allocations: 0 / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.035e-05/0.1018, allocations: 3.938 kB / 365.7 MB, free: 6.207 MB / 302.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.001549/0.1033, allocations: 0.9196 MB / 366.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1034, allocations: 8.031 kB / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.1038, allocations: 92.16 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.1043, allocations: 401.8 kB / 367.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.1043, allocations: 41.69 kB / 367.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/0.1044, allocations: 52.38 kB / 367.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000906/0.1053, allocations: 0.5454 MB / 367.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1053, allocations: 0 / 367.7 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.1054, allocations: 28 kB / 367.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1054, allocations: 12 kB / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008304/0.1062, allocations: 447.7 kB / 368.2 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.109, allocations: 2.03 MB / 370.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008812/0.1099, allocations: 0.6541 MB / 370.9 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005652/0.1104, allocations: 394.9 kB / 371.3 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.1105, allocations: 8.562 kB / 371.3 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1105, allocations: 39.12 kB / 371.3 MB, free: 336 kB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.164e-06/0.1106, allocations: 0 / 371.3 MB, free: 336 kB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.1576/0.2682, allocations: 2.028 MB / 373.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.2683, allocations: 63.23 kB / 373.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.2688, allocations: 369.2 kB / 373.8 MB, free: 19.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.2689, allocations: 36.14 kB / 373.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.269, allocations: 239.2 kB / 374 MB, free: 19.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.2692, allocations: 197 kB / 374.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.2693, allocations: 99.58 kB / 374.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.2694, allocations: 355.5 kB / 374.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.2698, allocations: 168.6 kB / 374.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.2702, allocations: 215.9 kB / 375.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007285/0.2709, allocations: 380.2 kB / 375.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2709, allocations: 0.5625 kB / 375.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001217/0.2721, allocations: 0.6695 MB / 376.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2722, allocations: 5.062 kB / 376.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2722, allocations: 1.375 kB / 376.1 MB, free: 18.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000724/0.2729, allocations: 258 kB / 376.4 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.2732, allocations: 55.83 kB / 376.4 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005158/0.2784, allocations: 6.778 MB / 383.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.2787, allocations: 22.25 kB / 383.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.255e-05/0.2788, allocations: 16.62 kB / 383.2 MB, free: 12.11 MB / 302.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 (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.000235/0.279, allocations: 173.2 kB / 383.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.2791, allocations: 47.66 kB / 383.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.2793, allocations: 68.94 kB / 383.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2793, allocations: 7.062 kB / 383.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.2793, allocations: 1.25 kB / 383.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2793, allocations: 6.156 kB / 383.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.2813, allocations: 1.348 MB / 384.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.2814, allocations: 3.828 kB / 384.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.2816, allocations: 52 kB / 384.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006834/0.2823, allocations: 268.5 kB / 385.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.2824, allocations: 13.25 kB / 385.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004901/0.2873, allocations: 6.774 MB / 392 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2873, allocations: 0 / 392 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.2891, allocations: 1.029 MB / 393 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.2893, allocations: 163.1 kB / 393.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.836e-05/0.2894, allocations: 10.22 kB / 393.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.2897, allocations: 20.88 kB / 393.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.2898, allocations: 55.7 kB / 393.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.2899, allocations: 14.89 kB / 393.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000289/0.2902, allocations: 263.7 kB / 393.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2902, allocations: 0 / 393.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000948/0.2911, allocations: 173.2 kB / 393.7 MB, free: 3.988 MB / 302.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 () * 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.0001542/0.2913, allocations: 117.3 kB / 393.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.2928, allocations: 1.029 MB / 394.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2928, allocations: 1.062 kB / 394.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009831/0.2938, allocations: 0.8326 MB / 395.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.2944, allocations: 83.84 kB / 395.8 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.2966, allocations: 1.536 MB / 397.3 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2969, allocations: 0.8787 MB / 398.2 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.297, allocations: 30.28 kB / 398.2 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.297, allocations: 4 kB / 398.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of Templates: time 0.01582/0.3129, allocations: 14.01 MB / 412.2 MB, free: 7.613 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches