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.001404/0.001404, allocations: 109 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2456, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007067/0.2527, allocations: 6.284 MB / 416.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004284/0.257, allocations: 2.227 MB / 418.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009233/0.258, allocations: 19.94 kB / 418.5 MB, free: 9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002124/0.2601, allocations: 0.7539 MB / 419.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001894/0.262, allocations: 0.6017 MB / 419.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.2633, allocations: 0.526 MB / 420.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.265, allocations: 1.187 MB / 421.5 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.2664, allocations: 0.8367 MB / 422.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007094/0.2671, allocations: 474.2 kB / 422.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008202/0.2679, allocations: 0.5406 MB / 423.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.2682, allocations: 112 kB / 423.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007053/0.2689, allocations: 283.8 kB / 423.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.2691, allocations: 259.1 kB / 424 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006403/0.2698, allocations: 0.5519 MB / 424.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.2716, allocations: 1.483 MB / 426.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2716, allocations: 0 / 426.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2716, allocations: 0 / 426.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.642e-05/0.2717, allocations: 0 / 426.1 MB, free: 1.363 MB / 334.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.003373/0.275, allocations: 1.448 MB / 427.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.2751, allocations: 12.03 kB / 427.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002641/0.2777, allocations: 395.2 kB / 427.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000979/0.2787, allocations: 0.5888 MB / 428.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.2788, allocations: 74.38 kB / 428.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.279, allocations: 104.4 kB / 428.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001897/0.2809, allocations: 1.016 MB / 429.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.2809, allocations: 4 kB / 429.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.223e-05/0.281, allocations: 40 kB / 429.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.2811, allocations: 24 kB / 429.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.2827, allocations: 0.8546 MB / 430.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005239/0.288, allocations: 3.601 MB / 434.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.2902, allocations: 1.892 MB / 436.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000927/0.2911, allocations: 467.3 kB / 436.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.2913, allocations: 178.8 kB / 436.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008635/0.2922, allocations: 496.9 kB / 437.2 MB, free: 5.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 3.056e-06/0.2922, allocations: 4 kB / 437.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004428/0.2966, allocations: 1.682 MB / 438.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/0.2968, allocations: 196.9 kB / 439.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006078/0.2974, allocations: 478.1 kB / 439.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.2974, allocations: 41.7 kB / 439.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.2977, allocations: 423.5 kB / 440 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.298, allocations: 280.1 kB / 440.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.2982, allocations: 154.6 kB / 440.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2983, allocations: 374.7 kB / 440.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005379/0.2989, allocations: 269.9 kB / 441.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006795/0.2996, allocations: 491.2 kB / 441.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.3008, allocations: 0.7474 MB / 442.3 MB, free: 212 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.3008, allocations: 0 / 442.3 MB, free: 212 kB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00198/0.3028, allocations: 1.037 MB / 443.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3028, allocations: 11.94 kB / 443.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3028, allocations: 4 kB / 443.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008361/0.3037, allocations: 272.7 kB / 443.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.3042, allocations: 139.8 kB / 443.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005352/0.3096, allocations: 4.851 MB / 448.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.3103, allocations: 103.2 kB / 448.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.327e-05/0.3104, allocations: 40 kB / 448.7 MB, free: 9.469 MB / 366.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.0004068/0.3108, allocations: 242.7 kB / 449 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.3109, allocations: 71.16 kB / 449 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.3129, allocations: 0.9789 MB / 450 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.313, allocations: 12 kB / 450 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.313, allocations: 0 / 450 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.313, allocations: 3.984 kB / 450 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.3161, allocations: 1.913 MB / 452 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3162, allocations: 0 / 452 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/0.3166, allocations: 103.9 kB / 452.1 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007633/0.3174, allocations: 257.4 kB / 452.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.3175, allocations: 19.98 kB / 452.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005083/0.3226, allocations: 4.809 MB / 457.1 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.3226, allocations: 7.969 kB / 457.1 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/0.3252, allocations: 1.373 MB / 458.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.3256, allocations: 216 kB / 458.7 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.3258, allocations: 16 kB / 458.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/0.3263, allocations: 43.97 kB / 458.8 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.3265, allocations: 68.91 kB / 458.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.3266, allocations: 35.92 kB / 458.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003974/0.327, allocations: 322.9 kB / 459.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.327, allocations: 4 kB / 459.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001124/0.3281, allocations: 311.3 kB / 459.5 MB, free: 14.27 MB / 382.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.0003493/0.3285, allocations: 163 kB / 459.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.3305, allocations: 1.096 MB / 460.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3305, allocations: 0 / 460.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.3317, allocations: 0.7478 MB / 461.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007401/0.3325, allocations: 116.4 kB / 461.6 MB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.3355, allocations: 1.686 MB / 463.3 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.3361, allocations: 0.9943 MB / 464.3 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.3363, allocations: 59.42 kB / 464.4 MB, free: 9.293 MB / 382.1 MB Notification: Performance of SimCode: time 2.124e-06/0.3364, allocations: 3.938 kB / 464.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of Templates: time 0.02128/0.3576, allocations: 17.66 MB / 482 MB, free: 7.645 MB / 398.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.0.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