Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009771/0.0009774, allocations: 108.3 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008044/0.0008044, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2091, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005004/0.2141, allocations: 6.198 MB / 405.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.2173, allocations: 2.108 MB / 407.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004146/0.2178, allocations: 16 kB / 407.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.2192, allocations: 0.6895 MB / 408.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.2204, allocations: 0.6991 MB / 409.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.2212, allocations: 459.1 kB / 409.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006989/0.2219, allocations: 1.121 MB / 410.8 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000769/0.2226, allocations: 0.69 MB / 411.4 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003038/0.223, allocations: 406.3 kB / 411.8 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.2234, allocations: 0.5171 MB / 412.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.486e-05/0.2235, allocations: 64 kB / 412.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.2239, allocations: 219.9 kB / 412.6 MB, free: 20.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.224, allocations: 215.1 kB / 412.8 MB, free: 19.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.2243, allocations: 0.4935 MB / 413.3 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008441/0.2252, allocations: 1.378 MB / 414.7 MB, free: 18.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2252, allocations: 0 / 414.7 MB, free: 18.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2252, allocations: 0 / 414.7 MB, free: 18.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2252, allocations: 0 / 414.7 MB, free: 18.07 MB / 298.7 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.002457/0.2277, allocations: 1.428 MB / 416.1 MB, free: 16.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2277, allocations: 8.031 kB / 416.2 MB, free: 16.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001926/0.2296, allocations: 375.3 kB / 416.5 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006511/0.2303, allocations: 0.5499 MB / 417.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.2303, allocations: 74.38 kB / 417.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.2305, allocations: 104.4 kB / 417.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.2319, allocations: 1.02 MB / 418.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.2319, allocations: 3.906 kB / 418.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.516e-05/0.232, allocations: 40 kB / 418.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.232, allocations: 24 kB / 418.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.2335, allocations: 0.8511 MB / 419.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004009/0.2375, allocations: 3.538 MB / 422.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.2393, allocations: 1.9 MB / 424.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007595/0.2401, allocations: 463.5 kB / 425.1 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.228e-05/0.2402, allocations: 93.75 kB / 425.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006839/0.2408, allocations: 0.4891 MB / 425.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 3.026e-06/0.2409, allocations: 0 / 425.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.003979/0.2448, allocations: 1.69 MB / 427.3 MB, free: 4.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.2449, allocations: 197 kB / 427.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000384/0.2453, allocations: 453.9 kB / 428 MB, free: 4.117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.2454, allocations: 45.64 kB / 428 MB, free: 4.066 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2455, allocations: 415.6 kB / 428.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.2457, allocations: 276 kB / 428.7 MB, free: 3.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.2459, allocations: 154.6 kB / 428.9 MB, free: 3.223 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.83e-05/0.2459, allocations: 374.8 kB / 429.2 MB, free: 2.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/0.2464, allocations: 265.9 kB / 429.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005537/0.247, allocations: 491.2 kB / 430 MB, free: 2.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009511/0.2479, allocations: 0.7357 MB / 430.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2479, allocations: 0 / 430.7 MB, free: 1.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001587/0.2495, allocations: 1.033 MB / 431.7 MB, free: 164 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2496, allocations: 11.94 kB / 431.7 MB, free: 152 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.2496, allocations: 11.98 kB / 431.7 MB, free: 140 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000811/0.2504, allocations: 265.7 kB / 432 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.251, allocations: 147.7 kB / 432.2 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004836/0.2558, allocations: 4.394 MB / 436.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005626/0.2564, allocations: 103.2 kB / 436.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.476e-05/0.2565, allocations: 32.19 kB / 436.7 MB, free: 10.94 MB / 314.7 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.0003384/0.2568, allocations: 253.5 kB / 436.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.2569, allocations: 67.19 kB / 437 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.2588, allocations: 0.967 MB / 438 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.2589, allocations: 11.94 kB / 438 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.2589, allocations: 0 / 438 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.2589, allocations: 3.984 kB / 438 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.2618, allocations: 1.914 MB / 439.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2618, allocations: 0 / 439.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004187/0.2622, allocations: 99.81 kB / 440 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007845/0.263, allocations: 261.5 kB / 440.2 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.263, allocations: 16 kB / 440.3 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004492/0.2675, allocations: 4.358 MB / 444.6 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2676, allocations: 0 / 444.6 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009561/0.2771, allocations: 6.942 MB / 451.6 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.2774, allocations: 208.1 kB / 451.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.427e-05/0.2775, allocations: 20 kB / 451.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004273/0.2779, allocations: 39.97 kB / 451.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.2781, allocations: 80.81 kB / 451.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.2781, allocations: 20 kB / 451.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003159/0.2785, allocations: 314.9 kB / 452.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2785, allocations: 0 / 452.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001086/0.2796, allocations: 375.2 kB / 452.6 MB, free: 10.35 MB / 330.7 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.0002342/0.2798, allocations: 152.9 kB / 452.7 MB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.2815, allocations: 1.077 MB / 453.8 MB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2816, allocations: 0 / 453.8 MB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.2826, allocations: 0.7317 MB / 454.5 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005947/0.2832, allocations: 114.1 kB / 454.7 MB, free: 8.215 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.2866, allocations: 2.7 MB / 457.4 MB, free: 5.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.2871, allocations: 1.018 MB / 458.4 MB, free: 4.406 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003282/0.2875, allocations: 81.33 kB / 458.5 MB, free: 4.324 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.2876, allocations: 43.44 kB / 458.5 MB, free: 4.281 MB / 330.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2876, allocations: 3.938 kB / 458.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of Templates: time 0.01928/0.3069, allocations: 13.3 MB / 471.8 MB, free: 7.133 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches