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.0008746/0.0008745, allocations: 95.77 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009546/0.0009547, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.7 MB / 247.5 MB, free: 10.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002131/0.0002131, allocations: 4 kB / 308.4 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.08948, allocations: 51.54 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005937/0.09545, allocations: 5.783 MB / 365.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004336/0.09984, allocations: 2.181 MB / 367.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006781/0.1005, allocations: 23.94 kB / 367.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006429/0.1012, allocations: 234.7 kB / 368.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.1026, allocations: 0.5401 MB / 368.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009507/0.1035, allocations: 487.1 kB / 369.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.1047, allocations: 1.125 MB / 370.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.1063, allocations: 1.057 MB / 371.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004906/0.1068, allocations: 386.2 kB / 371.7 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000509/0.1073, allocations: 469.6 kB / 372.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.13e-05/0.1074, allocations: 52 kB / 372.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004716/0.1079, allocations: 215.8 kB / 372.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.108, allocations: 183.1 kB / 372.6 MB, free: 448 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1751/0.2831, allocations: 0.4903 MB / 373.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002298/0.2855, allocations: 1.084 MB / 374.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2855, allocations: 0.75 kB / 374.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.2855, allocations: 8.312 kB / 374.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.234e-05/0.2856, allocations: 0 / 374.2 MB, free: 10.56 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.003775/0.2894, allocations: 1.271 MB / 375.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.2894, allocations: 10.12 kB / 375.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002908/0.2923, allocations: 408.7 kB / 375.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.2935, allocations: 0.5773 MB / 376.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.734e-05/0.2936, allocations: 77.55 kB / 376.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.2939, allocations: 102.6 kB / 376.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/0.2966, allocations: 1.038 MB / 377.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.2967, allocations: 0.7031 kB / 377.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.2968, allocations: 44.19 kB / 377.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.2968, allocations: 24.38 kB / 377.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.299, allocations: 0.8724 MB / 378.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006867/0.3059, allocations: 3.661 MB / 382.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.3081, allocations: 1.918 MB / 384.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3091, allocations: 471.3 kB / 384.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001361/0.3092, allocations: 175.1 kB / 384.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.3103, allocations: 0.5038 MB / 385.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 4.208e-06/0.3103, allocations: 0 / 385.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004871/0.3152, allocations: 1.737 MB / 387.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.3153, allocations: 190.9 kB / 387.2 MB, free: 5.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000808/0.3161, allocations: 482.4 kB / 387.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.527e-05/0.3162, allocations: 42.14 kB / 387.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.3166, allocations: 420.4 kB / 388.2 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.3168, allocations: 276.6 kB / 388.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3169, allocations: 82.39 kB / 388.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3171, allocations: 376.5 kB / 388.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/0.3176, allocations: 276.2 kB / 389.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006795/0.3183, allocations: 0.4923 MB / 389.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.3195, allocations: 0.764 MB / 390.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3195, allocations: 1.5 kB / 390.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002107/0.3216, allocations: 1.06 MB / 391.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3216, allocations: 7.344 kB / 391.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3217, allocations: 9.25 kB / 391.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008642/0.3225, allocations: 273.6 kB / 391.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.3231, allocations: 148.8 kB / 391.9 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004791/0.3279, allocations: 4.403 MB / 396.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000873/0.3288, allocations: 106.2 kB / 396.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.995e-05/0.3289, allocations: 39.28 kB / 396.4 MB, free: 15 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.0005533/0.3294, allocations: 250.6 kB / 396.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3296, allocations: 70.5 kB / 396.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.3316, allocations: 0.9827 MB / 397.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.3317, allocations: 12.25 kB / 397.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3317, allocations: 5.5 kB / 397.8 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.3317, allocations: 3.984 kB / 397.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003712/0.3354, allocations: 1.946 MB / 399.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3354, allocations: 1.25 kB / 399.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.3359, allocations: 106.3 kB / 399.8 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008174/0.3367, allocations: 261.8 kB / 400.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/0.3368, allocations: 19.44 kB / 400.1 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005115/0.3419, allocations: 4.361 MB / 404.5 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.342, allocations: 2.531 kB / 404.5 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/0.3447, allocations: 1.417 MB / 405.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004238/0.3451, allocations: 214.2 kB / 406.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.3453, allocations: 17.22 kB / 406.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.3458, allocations: 49.16 kB / 406.1 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.346, allocations: 69.95 kB / 406.2 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.267e-05/0.346, allocations: 29.48 kB / 406.2 MB, free: 7.922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003981/0.3464, allocations: 323.8 kB / 406.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3464, allocations: 0 / 406.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001144/0.3476, allocations: 308.7 kB / 406.9 MB, free: 7.652 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.0003017/0.3479, allocations: 166.3 kB / 407 MB, free: 7.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.35, allocations: 1.098 MB / 408.1 MB, free: 6.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.35, allocations: 8.125 kB / 408.1 MB, free: 6.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.3512, allocations: 0.7557 MB / 408.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.3521, allocations: 109.4 kB / 409 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.3554, allocations: 2.167 MB / 411.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006525/0.3561, allocations: 1.003 MB / 412.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.3563, allocations: 59.42 kB / 412.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3563, allocations: 0 / 412.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Templates: time 0.02264/0.379, allocations: 17.48 MB / 429.7 MB, free: 1.008 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/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