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.00144/0.00144, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.001716/0.001716, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.357/1.357, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 60.03 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09186/0.09291, allocations: 49.44 MB / 350 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008429/0.1014, allocations: 6.23 MB / 356.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004712/0.1061, allocations: 2.122 MB / 358.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005627/0.1067, allocations: 23.94 kB / 358.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.1086, allocations: 0.7546 MB / 359.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001723/0.1103, allocations: 0.7553 MB / 359.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.1113, allocations: 0.4987 MB / 360.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.1126, allocations: 1.16 MB / 361.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.1138, allocations: 0.8392 MB / 362.4 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.1143, allocations: 454.3 kB / 362.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006303/0.1149, allocations: 0.5367 MB / 363.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.1151, allocations: 108 kB / 363.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005959/0.1157, allocations: 275.8 kB / 363.8 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002071/0.1159, allocations: 251.1 kB / 364 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004733/0.1164, allocations: 0.5481 MB / 364.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001493/0.1179, allocations: 1.425 MB / 366 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1179, allocations: 0 / 366 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1179, allocations: 3.938 kB / 366 MB, free: 4.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.118, allocations: 0 / 366 MB, free: 4.363 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.003112/0.1211, allocations: 1.428 MB / 367.4 MB, free: 2.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.1211, allocations: 8.031 kB / 367.4 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002278/0.1234, allocations: 367.3 kB / 367.8 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000889/0.1243, allocations: 0.55 MB / 368.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.56e-05/0.1244, allocations: 78.38 kB / 368.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.1245, allocations: 100.3 kB / 368.5 MB, free: 1.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.1263, allocations: 1.024 MB / 369.6 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.1263, allocations: 0 / 369.6 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-05/0.1264, allocations: 44 kB / 369.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.1264, allocations: 24 kB / 369.6 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1672/0.2937, allocations: 0.8486 MB / 370.5 MB, free: 25.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005217/0.2989, allocations: 3.523 MB / 374 MB, free: 23.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.3009, allocations: 1.902 MB / 375.9 MB, free: 21.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008752/0.3018, allocations: 463.5 kB / 376.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.294e-05/0.3019, allocations: 95.06 kB / 376.4 MB, free: 21.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007777/0.3027, allocations: 0.4891 MB / 376.9 MB, free: 21.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.625e-06/0.3027, allocations: 0 / 376.9 MB, free: 21.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004291/0.307, allocations: 1.688 MB / 378.6 MB, free: 20.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.3071, allocations: 195.7 kB / 378.8 MB, free: 20.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005577/0.3076, allocations: 456.7 kB / 379.2 MB, free: 20.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.674e-05/0.3077, allocations: 42.7 kB / 379.3 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002766/0.308, allocations: 410.4 kB / 379.7 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.3082, allocations: 276 kB / 380 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/0.3084, allocations: 162.7 kB / 380.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3085, allocations: 372.6 kB / 380.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005295/0.3091, allocations: 265.4 kB / 380.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006493/0.3097, allocations: 493 kB / 381.2 MB, free: 18.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3108, allocations: 0.7374 MB / 382 MB, free: 18.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3108, allocations: 2.406 kB / 382 MB, free: 18.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001841/0.3127, allocations: 1.031 MB / 383 MB, free: 17.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.3127, allocations: 8.031 kB / 383 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.3127, allocations: 5.781 kB / 383 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009183/0.3136, allocations: 278.5 kB / 383.3 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/0.3142, allocations: 147.7 kB / 383.4 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004592/0.3188, allocations: 4.861 MB / 388.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006843/0.3195, allocations: 101.7 kB / 388.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.312e-05/0.3196, allocations: 43.17 kB / 388.4 MB, free: 13.7 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.0003611/0.32, allocations: 238.5 kB / 388.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.814e-05/0.3201, allocations: 69.34 kB / 388.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.322, allocations: 0.9756 MB / 389.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.322, allocations: 7.594 kB / 389.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.322, allocations: 1.125 kB / 389.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.322, allocations: 5.234 kB / 389.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002723/0.3247, allocations: 1.907 MB / 391.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3248, allocations: 0.9688 kB / 391.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.3252, allocations: 98.66 kB / 391.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007407/0.3259, allocations: 266 kB / 392 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-05/0.326, allocations: 25.27 kB / 392 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.33, allocations: 4.808 MB / 396.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3301, allocations: 5.188 kB / 396.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.3324, allocations: 1.373 MB / 398.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000248/0.3326, allocations: 214.8 kB / 398.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.324e-05/0.3327, allocations: 17.34 kB / 398.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/0.3332, allocations: 44.34 kB / 398.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.3333, allocations: 67.81 kB / 398.5 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/0.3334, allocations: 24.77 kB / 398.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003071/0.3337, allocations: 315.2 kB / 398.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3337, allocations: 0 / 398.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001093/0.3348, allocations: 301.8 kB / 399.2 MB, free: 6.418 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.000249/0.3351, allocations: 164 kB / 399.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.3371, allocations: 1.118 MB / 400.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3371, allocations: 0 / 400.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.3381, allocations: 0.7397 MB / 401.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.3387, allocations: 123.1 kB / 401.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3414, allocations: 1.651 MB / 402.9 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.3418, allocations: 0.9904 MB / 403.9 MB, free: 3.012 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003657/0.3422, allocations: 85.31 kB / 404 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.3423, allocations: 51.42 kB / 404.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3423, allocations: 0 / 404.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of Templates: time 0.02103/0.3634, allocations: 12.39 MB / 416.5 MB, free: 6.633 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