Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.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.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001475, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00202/0.002021, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 60.38 kB / 306.9 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.09409, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008078/0.1022, allocations: 6.27 MB / 363.7 MB, free: 7.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003891/0.1061, allocations: 2.239 MB / 366 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006844/0.1069, allocations: 19.94 kB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.1085, allocations: 0.7462 MB / 366.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.1097, allocations: 0.6088 MB / 367.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009082/0.1106, allocations: 0.526 MB / 367.9 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009767/0.1116, allocations: 1.187 MB / 369.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.1127, allocations: 0.8393 MB / 369.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004673/0.1132, allocations: 462.3 kB / 370.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005279/0.1137, allocations: 0.5406 MB / 370.9 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.1138, allocations: 115.9 kB / 371 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004584/0.1143, allocations: 291.8 kB / 371.3 MB, free: 216 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1509/0.2652, allocations: 245.4 kB / 371.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.2667, allocations: 0.5472 MB / 372.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.2695, allocations: 1.457 MB / 373.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.2695, allocations: 2.844 kB / 373.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2695, allocations: 1.031 kB / 373.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.2695, allocations: 0 / 373.6 MB, free: 10.82 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.00309/0.2726, allocations: 1.444 MB / 375 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2727, allocations: 12.5 kB / 375 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002436/0.2751, allocations: 398.6 kB / 375.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008566/0.276, allocations: 0.5747 MB / 376 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.977e-05/0.2761, allocations: 78.02 kB / 376 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.2762, allocations: 100.7 kB / 376.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.2781, allocations: 1.022 MB / 377.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.2781, allocations: 1.953 kB / 377.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.683e-05/0.2782, allocations: 40.77 kB / 377.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.2783, allocations: 24.88 kB / 377.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.2799, allocations: 0.8494 MB / 378.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.2847, allocations: 3.637 MB / 381.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.2869, allocations: 1.9 MB / 383.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000926/0.2878, allocations: 474.6 kB / 384.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.288, allocations: 173.9 kB / 384.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009204/0.2889, allocations: 496.8 kB / 384.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.615e-06/0.2889, allocations: 0 / 384.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004465/0.2934, allocations: 1.691 MB / 386.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.2935, allocations: 195.2 kB / 386.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.2941, allocations: 473.3 kB / 387.1 MB, free: 4.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.235e-05/0.2941, allocations: 43.05 kB / 387.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.2944, allocations: 420.1 kB / 387.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.2946, allocations: 274.1 kB / 387.8 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.2948, allocations: 166.8 kB / 388 MB, free: 3.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.2949, allocations: 378.8 kB / 388.3 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005231/0.2955, allocations: 262.7 kB / 388.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006488/0.2961, allocations: 494.2 kB / 389.1 MB, free: 2.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.2973, allocations: 0.7391 MB / 389.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.2973, allocations: 2.188 kB / 389.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00185/0.2992, allocations: 1.032 MB / 390.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.2992, allocations: 9.172 kB / 390.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.2992, allocations: 9.25 kB / 390.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008574/0.3001, allocations: 278.3 kB / 391.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005838/0.3007, allocations: 143 kB / 391.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004847/0.3055, allocations: 4.857 MB / 396.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/0.3062, allocations: 104.5 kB / 396.2 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.574e-05/0.3063, allocations: 33.69 kB / 396.3 MB, free: 14 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004203/0.3067, allocations: 250.8 kB / 396.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.3069, allocations: 65.84 kB / 396.6 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.3088, allocations: 0.9731 MB / 397.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.3089, allocations: 8.906 kB / 397.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.3089, allocations: 1.375 kB / 397.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.3089, allocations: 4.219 kB / 397.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.312, allocations: 1.92 MB / 399.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.312, allocations: 1.281 kB / 399.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.3125, allocations: 91.36 kB / 399.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008236/0.3133, allocations: 278.6 kB / 399.8 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.054e-05/0.3134, allocations: 27.58 kB / 399.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005009/0.3184, allocations: 4.806 MB / 404.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3184, allocations: 4.062 kB / 404.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.3209, allocations: 1.381 MB / 406.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.3213, allocations: 212.8 kB / 406.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.3214, allocations: 21.14 kB / 406.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.3218, allocations: 45.59 kB / 406.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.322, allocations: 67.06 kB / 406.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.68e-05/0.3221, allocations: 24.92 kB / 406.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003768/0.3225, allocations: 330.7 kB / 406.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3225, allocations: 0 / 406.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001099/0.3236, allocations: 304.8 kB / 407.1 MB, free: 6.398 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000265/0.3238, allocations: 176.4 kB / 407.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.3261, allocations: 1.108 MB / 408.3 MB, free: 5.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.3261, allocations: 4 kB / 408.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.3272, allocations: 0.7291 MB / 409.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006575/0.3279, allocations: 126.2 kB / 409.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.3311, allocations: 1.678 MB / 410.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/0.3317, allocations: 0.9943 MB / 411.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.3321, allocations: 89.47 kB / 411.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3323, allocations: 51.42 kB / 412 MB, free: 1.582 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3323, allocations: 0 / 412 MB, free: 1.582 MB / 318.1 MB Notification: Performance of Templates: time 0.02334/0.3556, allocations: 12.57 MB / 424.6 MB, free: 5.176 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches