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.001199/0.001199, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 58.91 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08882, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.0073/0.09615, allocations: 6.277 MB / 365.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004029/0.1002, allocations: 2.235 MB / 367.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004061/0.1006, allocations: 19.94 kB / 367.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.1024, allocations: 0.765 MB / 368.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.1037, allocations: 0.5978 MB / 368.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009518/0.1046, allocations: 0.526 MB / 369.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1057, allocations: 1.191 MB / 370.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.1069, allocations: 0.8432 MB / 371.4 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.1074, allocations: 470.2 kB / 371.8 MB, free: 348 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1554/0.2628, allocations: 0.5394 MB / 372.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004544/0.2633, allocations: 115.1 kB / 372.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.2644, allocations: 276.5 kB / 372.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003129/0.2647, allocations: 249.6 kB / 373 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007576/0.2655, allocations: 0.5498 MB / 373.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.2674, allocations: 1.478 MB / 375 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2674, allocations: 1.031 kB / 375 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2674, allocations: 0 / 375 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.2674, allocations: 1.469 kB / 375 MB, free: 10.89 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.002993/0.2704, allocations: 1.449 MB / 376.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2705, allocations: 9.469 kB / 376.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002514/0.273, allocations: 402.9 kB / 376.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000856/0.2739, allocations: 0.5878 MB / 377.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.102e-05/0.2739, allocations: 76.66 kB / 377.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.2741, allocations: 97.25 kB / 377.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.2758, allocations: 1.02 MB / 378.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.2758, allocations: 1.031 kB / 378.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/0.2759, allocations: 44.64 kB / 378.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.2759, allocations: 26.22 kB / 378.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.2775, allocations: 0.8492 MB / 379.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.2823, allocations: 3.601 MB / 383.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.2842, allocations: 1.897 MB / 385.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008457/0.2851, allocations: 471.4 kB / 385.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.2852, allocations: 175.1 kB / 385.7 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008115/0.286, allocations: 497.9 kB / 386.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.275e-06/0.286, allocations: 0 / 386.2 MB, free: 5.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004266/0.2903, allocations: 1.687 MB / 387.9 MB, free: 4.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.2904, allocations: 197.3 kB / 388.1 MB, free: 4.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005216/0.2909, allocations: 476.5 kB / 388.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-05/0.291, allocations: 45.53 kB / 388.6 MB, free: 4.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.2912, allocations: 420.4 kB / 389 MB, free: 3.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.2914, allocations: 271.5 kB / 389.2 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.2916, allocations: 165.1 kB / 389.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.89e-05/0.2917, allocations: 373.4 kB / 389.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.2922, allocations: 262.8 kB / 390 MB, free: 3.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/0.2928, allocations: 495.4 kB / 390.5 MB, free: 2.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.2939, allocations: 0.7421 MB / 391.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.2939, allocations: 2.438 kB / 391.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002009/0.296, allocations: 1.036 MB / 392.3 MB, free: 1.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.296, allocations: 10.84 kB / 392.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.296, allocations: 9.531 kB / 392.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008429/0.2969, allocations: 279 kB / 392.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.2974, allocations: 140.6 kB / 392.7 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005053/0.3025, allocations: 4.858 MB / 397.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/0.3032, allocations: 101 kB / 397.7 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.3033, allocations: 33.7 kB / 397.7 MB, free: 13.69 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.0004641/0.3038, allocations: 248.2 kB / 398 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.3039, allocations: 71.17 kB / 398 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.306, allocations: 0.9659 MB / 399 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.306, allocations: 12.53 kB / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.306, allocations: 0 / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.306, allocations: 8.797 kB / 399 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.3095, allocations: 1.918 MB / 400.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3095, allocations: 0 / 400.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.3099, allocations: 88.86 kB / 401 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.3107, allocations: 269.3 kB / 401.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.795e-05/0.3107, allocations: 19.52 kB / 401.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.3159, allocations: 4.813 MB / 406.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3159, allocations: 0 / 406.1 MB, free: 7.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/0.3184, allocations: 1.379 MB / 407.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003931/0.3188, allocations: 218.5 kB / 407.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.319, allocations: 16.78 kB / 407.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004837/0.3195, allocations: 42.72 kB / 407.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.3196, allocations: 69.06 kB / 407.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-05/0.3197, allocations: 28.42 kB / 407.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003922/0.3201, allocations: 335.1 kB / 408.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3201, allocations: 0 / 408.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001187/0.3213, allocations: 313.9 kB / 408.5 MB, free: 5.812 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.000321/0.3216, allocations: 153.2 kB / 408.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.3238, allocations: 1.084 MB / 409.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3238, allocations: 8.188 kB / 409.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.325, allocations: 0.7281 MB / 410.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006515/0.3257, allocations: 125.7 kB / 410.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.3288, allocations: 1.655 MB / 412.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005924/0.3294, allocations: 0.9943 MB / 413.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003269/0.3297, allocations: 85.42 kB / 413.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3299, allocations: 51.42 kB / 413.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3299, allocations: 0 / 413.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of Templates: time 0.02664/0.3565, allocations: 12.54 MB / 425.9 MB, free: 4.492 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 -s cvode -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) Reference file matches