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.001242/0.001242, allocations: 112.4 kB / 16.51 MB, free: 6.707 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.001003/0.001003, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.277/1.277, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000945/0.000945, allocations: 48.17 kB / 300 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07974/0.08071, allocations: 49.45 MB / 349.4 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006721/0.08746, allocations: 6.21 MB / 355.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003028/0.09051, allocations: 2.11 MB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.09085, allocations: 19.94 kB / 357.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001549/0.09242, allocations: 0.6807 MB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001322/0.09376, allocations: 0.6919 MB / 359.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008585/0.09462, allocations: 463 kB / 359.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009184/0.09555, allocations: 1.105 MB / 360.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008979/0.09646, allocations: 0.686 MB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.09686, allocations: 418.3 kB / 361.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005334/0.09741, allocations: 0.5055 MB / 362.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.09753, allocations: 71.94 kB / 362.3 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.09801, allocations: 223.8 kB / 362.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.0982, allocations: 203.1 kB / 362.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.09865, allocations: 0.4974 MB / 363.3 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001249/0.09991, allocations: 1.374 MB / 364.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.09993, allocations: 8 kB / 364.6 MB, free: 5.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.09994, allocations: 0 / 364.6 MB, free: 5.289 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.09996, allocations: 0 / 364.6 MB, free: 5.289 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.002902/0.1029, allocations: 1.43 MB / 366.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1029, allocations: 8.031 kB / 366.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.1051, allocations: 367.3 kB / 366.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007972/0.1059, allocations: 0.554 MB / 367 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.1059, allocations: 78.38 kB / 367.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1061, allocations: 104.3 kB / 367.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.1078, allocations: 1.024 MB / 368.2 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.1079, allocations: 0 / 368.2 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.684e-05/0.108, allocations: 44 kB / 368.2 MB, free: 1.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.108, allocations: 24 kB / 368.3 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.1096, allocations: 0.8511 MB / 369.1 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.14/0.2496, allocations: 3.524 MB / 372.6 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/0.2516, allocations: 1.892 MB / 374.5 MB, free: 22.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/0.2526, allocations: 461.9 kB / 375 MB, free: 21.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.828e-05/0.2527, allocations: 94.55 kB / 375.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000911/0.2536, allocations: 0.4908 MB / 375.6 MB, free: 21.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.835e-06/0.2536, allocations: 0 / 375.6 MB, free: 21.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004809/0.2584, allocations: 1.685 MB / 377.2 MB, free: 20.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.2585, allocations: 200 kB / 377.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005116/0.259, allocations: 456.6 kB / 377.9 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.2591, allocations: 45.83 kB / 377.9 MB, free: 20.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.2593, allocations: 408.4 kB / 378.3 MB, free: 20.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.2595, allocations: 277.2 kB / 378.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.2597, allocations: 161.7 kB / 378.8 MB, free: 19.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2598, allocations: 370 kB / 379.1 MB, free: 19.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005588/0.2604, allocations: 268.4 kB / 379.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006781/0.2611, allocations: 491.5 kB / 379.9 MB, free: 18.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.2622, allocations: 0.739 MB / 380.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.2623, allocations: 1.188 kB / 380.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001822/0.2641, allocations: 1.028 MB / 381.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.2641, allocations: 10.27 kB / 381.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.2641, allocations: 5.469 kB / 381.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008479/0.265, allocations: 271.1 kB / 381.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005566/0.2656, allocations: 148.3 kB / 382.1 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00428/0.2698, allocations: 4.403 MB / 386.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/0.2704, allocations: 98.52 kB / 386.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.2705, allocations: 35.28 kB / 386.6 MB, free: 14.31 MB / 302.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.0003314/0.2708, allocations: 245.5 kB / 386.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.602e-05/0.2709, allocations: 66.81 kB / 386.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.2728, allocations: 0.969 MB / 387.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.2728, allocations: 8.719 kB / 387.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2729, allocations: 5.312 kB / 387.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2729, allocations: 8.875 kB / 387.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002837/0.2757, allocations: 1.906 MB / 389.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2757, allocations: 0 / 389.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.2762, allocations: 95.52 kB / 389.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007401/0.2769, allocations: 269.8 kB / 390.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.893e-05/0.277, allocations: 18.14 kB / 390.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003797/0.2808, allocations: 4.359 MB / 394.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2808, allocations: 1.25 kB / 394.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.2829, allocations: 1.367 MB / 395.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.2831, allocations: 213.5 kB / 396.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.497e-05/0.2832, allocations: 29.97 kB / 396.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.2837, allocations: 37.41 kB / 396.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.2838, allocations: 70.89 kB / 396.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.72e-05/0.2839, allocations: 23.09 kB / 396.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.2842, allocations: 314.1 kB / 396.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2842, allocations: 5.156 kB / 396.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009415/0.2852, allocations: 305.7 kB / 396.9 MB, free: 7.785 MB / 302.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.0002083/0.2854, allocations: 163.9 kB / 397 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.287, allocations: 1.067 MB / 398.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.287, allocations: 4.625 kB / 398.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009434/0.2879, allocations: 0.7294 MB / 398.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006/0.2885, allocations: 113.3 kB / 398.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.2908, allocations: 2.061 MB / 401 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/0.2911, allocations: 0.9932 MB / 402 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003083/0.2914, allocations: 86.97 kB / 402.1 MB, free: 4.168 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.2916, allocations: 50.8 kB / 402.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2916, allocations: 0 / 402.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of Templates: time 0.01649/0.3081, allocations: 11.52 MB / 413.6 MB, free: 9.035 MB / 318.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