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.001796/0.001796, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002118, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001814, allocations: 63.27 kB / 307.7 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09998, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007935/0.108, allocations: 6.275 MB / 364.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004276/0.1123, allocations: 2.231 MB / 366.7 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004875/0.1128, allocations: 23.94 kB / 366.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.1147, allocations: 0.75 MB / 367.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.1161, allocations: 0.6095 MB / 368.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1172, allocations: 0.537 MB / 368.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.1185, allocations: 1.191 MB / 369.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.1198, allocations: 0.8393 MB / 370.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006162/0.1204, allocations: 474.3 kB / 371.1 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006424/0.121, allocations: 0.5445 MB / 371.7 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001562/0.1212, allocations: 108 kB / 371.8 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005708/0.1218, allocations: 283.8 kB / 372 MB, free: 172 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1682/0.29, allocations: 251.6 kB / 372.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.2912, allocations: 0.5438 MB / 372.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003404/0.2946, allocations: 1.464 MB / 374.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.2946, allocations: 0.8125 kB / 374.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2946, allocations: 0 / 374.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.237e-05/0.2947, allocations: 0.5938 kB / 374.3 MB, free: 10.88 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.003689/0.2984, allocations: 1.443 MB / 375.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2984, allocations: 10 kB / 375.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.301, allocations: 386.1 kB / 376.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.302, allocations: 0.5713 MB / 376.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.3021, allocations: 78.34 kB / 376.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.3023, allocations: 100.1 kB / 376.9 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.3042, allocations: 1.019 MB / 377.9 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.3043, allocations: 6.094 kB / 377.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.811e-05/0.3044, allocations: 41.55 kB / 377.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.3044, allocations: 25.64 kB / 378 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3062, allocations: 0.8567 MB / 378.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006064/0.3122, allocations: 3.636 MB / 382.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.3143, allocations: 1.91 MB / 384.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009282/0.3152, allocations: 468.2 kB / 384.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.3154, allocations: 180.5 kB / 385 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008791/0.3163, allocations: 494.5 kB / 385.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.655e-06/0.3163, allocations: 2.812 kB / 385.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004535/0.3208, allocations: 1.685 MB / 387.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.3209, allocations: 191.1 kB / 387.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005809/0.3215, allocations: 481.3 kB / 387.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.54e-05/0.3216, allocations: 44.91 kB / 387.9 MB, free: 4.422 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.3218, allocations: 414.9 kB / 388.3 MB, free: 4.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.322, allocations: 278.7 kB / 388.5 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.3222, allocations: 156.3 kB / 388.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.3223, allocations: 378.3 kB / 389.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005292/0.3229, allocations: 267.5 kB / 389.3 MB, free: 3.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00064/0.3235, allocations: 0.4889 MB / 389.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.3247, allocations: 0.7382 MB / 390.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.3247, allocations: 2 kB / 390.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001989/0.3267, allocations: 1.038 MB / 391.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.3267, allocations: 7.844 kB / 391.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.3267, allocations: 9.312 kB / 391.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008837/0.3276, allocations: 269 kB / 391.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.3282, allocations: 145.8 kB / 392 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005528/0.3337, allocations: 4.861 MB / 396.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/0.3346, allocations: 103.2 kB / 397 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/0.3347, allocations: 35.73 kB / 397 MB, free: 14.04 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.0005408/0.3352, allocations: 241 kB / 397.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.3354, allocations: 70.47 kB / 397.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002119/0.3375, allocations: 0.9691 MB / 398.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.3375, allocations: 9.812 kB / 398.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.3375, allocations: 0 / 398.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3376, allocations: 9.297 kB / 398.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003573/0.3411, allocations: 1.919 MB / 400.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.3412, allocations: 1.438 kB / 400.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.3416, allocations: 95.66 kB / 400.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008115/0.3424, allocations: 271.3 kB / 400.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.3425, allocations: 23.42 kB / 400.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005706/0.3482, allocations: 4.815 MB / 405.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3483, allocations: 0 / 405.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.3509, allocations: 1.381 MB / 406.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.3513, allocations: 209 kB / 407 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.3514, allocations: 18.53 kB / 407 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.3519, allocations: 49.02 kB / 407.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.3521, allocations: 67.03 kB / 407.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.674e-05/0.3522, allocations: 28.52 kB / 407.2 MB, free: 6.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004776/0.3526, allocations: 322.3 kB / 407.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3527, allocations: 1.812 kB / 407.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001149/0.3538, allocations: 312.7 kB / 407.8 MB, free: 6.426 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.000332/0.3542, allocations: 168 kB / 407.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.3566, allocations: 1.114 MB / 409.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3566, allocations: 0 / 409.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.3579, allocations: 0.7567 MB / 409.8 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.0007092/0.3586, allocations: 120.1 kB / 409.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.362, allocations: 1.685 MB / 411.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007248/0.3628, allocations: 1.002 MB / 412.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.363, allocations: 59.42 kB / 412.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.363, allocations: 0 / 412.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of Templates: time 0.02374/0.3867, allocations: 17.63 MB / 430.3 MB, free: 60 kB / 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/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_trunk_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