Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001831/0.001831, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002139/0.00214, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.7 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 68.55 kB / 307.9 MB, free: 480 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1068, allocations: 50.53 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008417/0.1153, allocations: 6.29 MB / 364.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004408/0.1197, allocations: 2.227 MB / 366.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005109/0.1203, allocations: 19.94 kB / 367 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.1222, allocations: 0.7577 MB / 367.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.1238, allocations: 0.59 MB / 368.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1249, allocations: 0.53 MB / 368.8 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.1263, allocations: 1.187 MB / 370 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.1276, allocations: 0.8354 MB / 370.9 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006554/0.1283, allocations: 470.2 kB / 371.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000684/0.129, allocations: 0.5367 MB / 371.9 MB, free: 412 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.1291, allocations: 112 kB / 372 MB, free: 300 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006296/0.1298, allocations: 287.8 kB / 372.2 MB, free: 12 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1468/0.2765, allocations: 252.1 kB / 372.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006722/0.2772, allocations: 0.5493 MB / 373 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001827/0.2791, allocations: 1.452 MB / 374.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2791, allocations: 1.156 kB / 374.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2791, allocations: 3.656 kB / 374.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.2791, allocations: 0 / 374.5 MB, free: 10.81 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.002966/0.2821, allocations: 1.449 MB / 375.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2821, allocations: 9.312 kB / 376 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002477/0.2846, allocations: 405.9 kB / 376.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008393/0.2855, allocations: 0.5704 MB / 376.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.827e-05/0.2856, allocations: 74.81 kB / 377 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.2857, allocations: 101.5 kB / 377.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.2874, allocations: 1.02 MB / 378.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.2875, allocations: 2.453 kB / 378.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.032e-05/0.2876, allocations: 40.8 kB / 378.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.2876, allocations: 24.75 kB / 378.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001558/0.2891, allocations: 0.856 MB / 379 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004747/0.2939, allocations: 3.636 MB / 382.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.2958, allocations: 1.906 MB / 384.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000869/0.2967, allocations: 466.9 kB / 385 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.2968, allocations: 179 kB / 385.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008296/0.2977, allocations: 494.2 kB / 385.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.786e-06/0.2977, allocations: 0 / 385.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004353/0.302, allocations: 1.689 MB / 387.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.3021, allocations: 194.1 kB / 387.6 MB, free: 4.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005471/0.3027, allocations: 479.2 kB / 388 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.3027, allocations: 42.95 kB / 388.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.303, allocations: 418.7 kB / 388.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.3031, allocations: 275.6 kB / 388.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.3034, allocations: 155.5 kB / 388.9 MB, free: 3.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.3035, allocations: 373.2 kB / 389.3 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/0.304, allocations: 275.5 kB / 389.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/0.3046, allocations: 492 kB / 390 MB, free: 2.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3057, allocations: 0.7385 MB / 390.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3057, allocations: 2.672 kB / 390.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001825/0.3076, allocations: 1.036 MB / 391.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3076, allocations: 8.094 kB / 391.8 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3076, allocations: 8.5 kB / 391.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008098/0.3084, allocations: 283.6 kB / 392.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.309, allocations: 141.9 kB / 392.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005126/0.3141, allocations: 4.859 MB / 397.1 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007255/0.3149, allocations: 96.92 kB / 397.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.905e-05/0.3149, allocations: 36.09 kB / 397.2 MB, free: 13.86 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.0005201/0.3155, allocations: 254.6 kB / 397.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.3156, allocations: 73.33 kB / 397.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.3176, allocations: 0.9609 MB / 398.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.3176, allocations: 9.625 kB / 398.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.3177, allocations: 0 / 398.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.3177, allocations: 9.516 kB / 398.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003306/0.321, allocations: 1.915 MB / 400.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.321, allocations: 1.844 kB / 400.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.3214, allocations: 95.14 kB / 400.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007737/0.3222, allocations: 271.2 kB / 400.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.453e-05/0.3223, allocations: 21.14 kB / 400.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005371/0.3277, allocations: 4.817 MB / 405.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.3277, allocations: 1.938 kB / 405.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.3303, allocations: 1.381 MB / 407 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004012/0.3308, allocations: 214.4 kB / 407.2 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3309, allocations: 20 kB / 407.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004623/0.3314, allocations: 38.41 kB / 407.3 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.3316, allocations: 67.25 kB / 407.4 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-05/0.3316, allocations: 35.92 kB / 407.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.332, allocations: 332.8 kB / 407.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.332, allocations: 0 / 407.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001072/0.3331, allocations: 308.6 kB / 408 MB, free: 6.191 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.0002745/0.3334, allocations: 156.6 kB / 408.2 MB, free: 6.078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.3357, allocations: 1.116 MB / 409.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3358, allocations: 4.062 kB / 409.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.337, allocations: 0.7468 MB / 410 MB, free: 4.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.3377, allocations: 122.9 kB / 410.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.3414, allocations: 1.718 MB / 411.9 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000788/0.3422, allocations: 0.9904 MB / 412.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.3425, allocations: 63.41 kB / 412.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3425, allocations: 0 / 412.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of Templates: time 0.02375/0.3663, allocations: 17.61 MB / 430.5 MB, free: 15.88 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma