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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 108.8 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001295, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009433/0.0009433, allocations: 39.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2347, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007026/0.2418, allocations: 6.225 MB / 407 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003161/0.245, allocations: 2.131 MB / 409.1 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/0.2453, allocations: 19.94 kB / 409.1 MB, free: 472 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.247, allocations: 0.7521 MB / 409.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.2486, allocations: 0.7572 MB / 410.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.2495, allocations: 0.4909 MB / 411.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.2506, allocations: 1.168 MB / 412.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.2517, allocations: 0.8315 MB / 413.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004541/0.2521, allocations: 462.2 kB / 413.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.2527, allocations: 0.5329 MB / 414.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.2529, allocations: 112 kB / 414.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004509/0.2533, allocations: 271.8 kB / 414.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.2535, allocations: 247.1 kB / 414.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.254, allocations: 0.5442 MB / 415.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001304/0.2553, allocations: 1.456 MB / 416.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2553, allocations: 0 / 416.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2553, allocations: 0 / 416.7 MB, free: 8.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.2553, allocations: 0 / 416.7 MB, free: 8.809 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.002794/0.2581, allocations: 1.417 MB / 418.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2582, allocations: 8.031 kB / 418.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/0.2604, allocations: 371.3 kB / 418.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007859/0.2612, allocations: 0.5616 MB / 419.1 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.2613, allocations: 82.3 kB / 419.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.2614, allocations: 100.4 kB / 419.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.2631, allocations: 1.02 MB / 420.2 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.2632, allocations: 3.984 kB / 420.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-05/0.2633, allocations: 40 kB / 420.3 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.2633, allocations: 24 kB / 420.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.2649, allocations: 0.8583 MB / 421.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004751/0.2697, allocations: 3.499 MB / 424.7 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.2719, allocations: 1.911 MB / 426.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009117/0.2728, allocations: 467.3 kB / 427 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.996e-05/0.273, allocations: 89.77 kB / 427.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008304/0.2738, allocations: 496.8 kB / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.255e-06/0.2738, allocations: 0 / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004438/0.2783, allocations: 1.678 MB / 429.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.2784, allocations: 204.9 kB / 429.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.2789, allocations: 457.8 kB / 429.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.2789, allocations: 45.7 kB / 430 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.2792, allocations: 411.6 kB / 430.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.2794, allocations: 276 kB / 430.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/0.2796, allocations: 154.6 kB / 430.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2798, allocations: 370.8 kB / 431.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005399/0.2803, allocations: 273.9 kB / 431.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006939/0.281, allocations: 483.2 kB / 431.9 MB, free: 8.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.2823, allocations: 0.7435 MB / 432.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2823, allocations: 8 kB / 432.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002045/0.2843, allocations: 1.029 MB / 433.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.2844, allocations: 12.16 kB / 433.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.2844, allocations: 8 kB / 433.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008618/0.2852, allocations: 263 kB / 434 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005597/0.2858, allocations: 147.7 kB / 434.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005925/0.2918, allocations: 4.865 MB / 439 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005937/0.2924, allocations: 99.19 kB / 439.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.2924, allocations: 36 kB / 439.1 MB, free: 1.23 MB / 350.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.0003931/0.2928, allocations: 246.2 kB / 439.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.2929, allocations: 67.25 kB / 439.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.295, allocations: 0.963 MB / 440.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.295, allocations: 8 kB / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.295, allocations: 4 kB / 440.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.295, allocations: 3.984 kB / 440.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/0.2981, allocations: 1.905 MB / 442.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.2981, allocations: 3.984 kB / 442.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.2985, allocations: 95.83 kB / 442.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007563/0.2993, allocations: 264.7 kB / 442.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.135e-05/0.2994, allocations: 23.98 kB / 442.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005532/0.3049, allocations: 4.803 MB / 447.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.3049, allocations: 7.875 kB / 447.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002545/0.3075, allocations: 1.373 MB / 448.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.3078, allocations: 212 kB / 449.1 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3079, allocations: 27.98 kB / 449.1 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.3083, allocations: 39.97 kB / 449.1 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3086, allocations: 72.84 kB / 449.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.876e-05/0.3086, allocations: 27.92 kB / 449.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.309, allocations: 310.9 kB / 449.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.309, allocations: 0 / 449.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001009/0.31, allocations: 307.2 kB / 449.8 MB, free: 6.082 MB / 366.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.0003051/0.3103, allocations: 152 kB / 450 MB, free: 5.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.3123, allocations: 1.087 MB / 451.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3123, allocations: 1.25 kB / 451.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.3134, allocations: 0.7391 MB / 451.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006502/0.3141, allocations: 122 kB / 451.9 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.317, allocations: 1.624 MB / 453.6 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.3176, allocations: 0.9865 MB / 454.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.3179, allocations: 81.33 kB / 454.6 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.3181, allocations: 51.42 kB / 454.7 MB, free: 1.121 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3181, allocations: 0 / 454.7 MB, free: 1.121 MB / 366.1 MB Notification: Performance of Templates: time 0.01939/0.3375, allocations: 12.55 MB / 467.2 MB, free: 4.707 MB / 382.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches