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.001074/0.001075, allocations: 114.2 kB / 17.69 MB, free: 5.309 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.001144/0.001144, allocations: 191 kB / 18.63 MB, free: 4.375 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.341/1.341, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008649/0.000865, allocations: 51.8 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09951, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006803/0.1064, allocations: 6.211 MB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003713/0.1101, allocations: 2.133 MB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004853/0.1106, allocations: 19.94 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001704/0.1124, allocations: 0.7527 MB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.1138, allocations: 0.7533 MB / 361.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008831/0.1147, allocations: 0.4948 MB / 361.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001132/0.1159, allocations: 1.171 MB / 363 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.117, allocations: 0.8392 MB / 363.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000479/0.1175, allocations: 462.3 kB / 364.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005666/0.1181, allocations: 0.5328 MB / 364.9 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.1182, allocations: 108 kB / 365 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005187/0.1187, allocations: 271.8 kB / 365.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.1189, allocations: 255.1 kB / 365.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004315/0.1194, allocations: 0.5403 MB / 366 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.1207, allocations: 1.444 MB / 367.5 MB, free: 3.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1207, allocations: 4 kB / 367.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1207, allocations: 0 / 367.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.1207, allocations: 0 / 367.5 MB, free: 3.648 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.002751/0.1235, allocations: 1.42 MB / 368.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.1235, allocations: 12.03 kB / 368.9 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002212/0.1258, allocations: 367.3 kB / 369.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.1266, allocations: 0.5656 MB / 369.8 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.219e-05/0.1267, allocations: 74.38 kB / 369.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.1268, allocations: 104.3 kB / 370 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1853/0.3122, allocations: 1.023 MB / 371 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.3123, allocations: 0 / 371 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003677/0.3127, allocations: 40.12 kB / 371.1 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.302e-05/0.3128, allocations: 24.31 kB / 371.1 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002563/0.3153, allocations: 0.8501 MB / 371.9 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006427/0.3218, allocations: 3.487 MB / 375.4 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/0.3238, allocations: 1.904 MB / 377.3 MB, free: 21.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008529/0.3247, allocations: 463.2 kB / 377.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.31e-05/0.3248, allocations: 96.12 kB / 377.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007748/0.3256, allocations: 0.4893 MB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.084e-06/0.3256, allocations: 3.969 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004064/0.3297, allocations: 1.688 MB / 380.1 MB, free: 20.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.3297, allocations: 196.1 kB / 380.3 MB, free: 20.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005023/0.3302, allocations: 455.7 kB / 380.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.918e-05/0.3303, allocations: 43.8 kB / 380.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002326/0.3305, allocations: 413 kB / 381.2 MB, free: 19.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.3307, allocations: 277.4 kB / 381.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.3309, allocations: 154 kB / 381.6 MB, free: 19.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.331, allocations: 376.5 kB / 381.9 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.3315, allocations: 266 kB / 382.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005699/0.3321, allocations: 486.5 kB / 382.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009874/0.3331, allocations: 0.7498 MB / 383.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3331, allocations: 1.594 kB / 383.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001664/0.3348, allocations: 1.032 MB / 384.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3348, allocations: 7.406 kB / 384.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3348, allocations: 5.031 kB / 384.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007669/0.3356, allocations: 267.8 kB / 384.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/0.3361, allocations: 145.3 kB / 384.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004147/0.3403, allocations: 4.865 MB / 389.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000538/0.3408, allocations: 99.11 kB / 389.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.458e-05/0.3409, allocations: 39.95 kB / 389.9 MB, free: 13.41 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.0003296/0.3412, allocations: 240.2 kB / 390.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.973e-05/0.3413, allocations: 69.97 kB / 390.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.3431, allocations: 0.967 MB / 391.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.3431, allocations: 9.703 kB / 391.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3431, allocations: 5.25 kB / 391.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.3432, allocations: 7.734 kB / 391.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.3458, allocations: 1.907 MB / 393.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3459, allocations: 1.5 kB / 393.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003816/0.3462, allocations: 95.08 kB / 393.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006449/0.3469, allocations: 261.5 kB / 393.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.791e-05/0.347, allocations: 21.8 kB / 393.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004339/0.3513, allocations: 4.808 MB / 398.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3513, allocations: 2.438 kB / 398.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.354, allocations: 1.37 MB / 399.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002771/0.3543, allocations: 217.8 kB / 399.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/0.3544, allocations: 22.39 kB / 399.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.3548, allocations: 41.22 kB / 399.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.355, allocations: 71.09 kB / 400 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.008e-05/0.355, allocations: 25.33 kB / 400 MB, free: 6.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000343/0.3554, allocations: 313 kB / 400.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3554, allocations: 1.656 kB / 400.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001072/0.3564, allocations: 306.2 kB / 400.6 MB, free: 6.055 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.000259/0.3567, allocations: 151.9 kB / 400.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.3585, allocations: 1.084 MB / 401.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3585, allocations: 4.25 kB / 401.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008788/0.3594, allocations: 0.7352 MB / 402.6 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.3599, allocations: 116.3 kB / 402.7 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.3623, allocations: 1.641 MB / 404.3 MB, free: 3.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.3627, allocations: 0.9904 MB / 405.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.3629, allocations: 77.34 kB / 405.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3631, allocations: 55.36 kB / 405.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3631, allocations: 0 / 405.4 MB, free: 1.992 MB / 302.1 MB Notification: Performance of Templates: time 0.01839/0.3815, allocations: 12.36 MB / 417.8 MB, free: 5.789 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 -s cvode -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/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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches