Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 109.4 kB / 18.36 MB, free: 4.637 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.001172/0.001172, allocations: 192 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 51.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08401, allocations: 46.62 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007325/0.09138, allocations: 6.257 MB / 335 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003622/0.09502, allocations: 2.181 MB / 337.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003308/0.09539, allocations: 23.94 kB / 337.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.09698, allocations: 0.7577 MB / 338 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.09841, allocations: 0.7806 MB / 338.7 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.09924, allocations: 0.4909 MB / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009816/0.1002, allocations: 1.195 MB / 340.4 MB, free: 8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009844/0.1012, allocations: 0.8354 MB / 341.3 MB, free: 7.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.1017, allocations: 462.3 kB / 341.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005922/0.1023, allocations: 0.5484 MB / 342.3 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.1024, allocations: 116 kB / 342.4 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.1028, allocations: 275.8 kB / 342.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.103, allocations: 251.1 kB / 342.9 MB, free: 5.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004357/0.1035, allocations: 0.548 MB / 343.4 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.1047, allocations: 1.452 MB / 344.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1047, allocations: 0 / 344.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1047, allocations: 0 / 344.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.1047, allocations: 0 / 344.9 MB, free: 3.504 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002717/0.1074, allocations: 1.448 MB / 346.3 MB, free: 2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1075, allocations: 12.03 kB / 346.3 MB, free: 1.988 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/0.1104, allocations: 471.2 kB / 346.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008921/0.1113, allocations: 0.5849 MB / 347.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.1113, allocations: 82.39 kB / 347.5 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.1115, allocations: 104.4 kB / 347.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.1132, allocations: 1.051 MB / 348.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.1132, allocations: 3.938 kB / 348.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.774e-05/0.1133, allocations: 43.98 kB / 348.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.778e-05/0.1134, allocations: 28 kB / 348.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.115, allocations: 0.9174 MB / 349.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005259/0.1203, allocations: 3.699 MB / 353.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.1227, allocations: 2.498 MB / 355.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008383/0.1236, allocations: 471.4 kB / 356.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.997e-05/0.1237, allocations: 89.77 kB / 356.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007956/0.1245, allocations: 0.493 MB / 356.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.455e-06/0.1245, allocations: 0 / 356.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004168/0.1287, allocations: 1.709 MB / 358.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.809e-05/0.1288, allocations: 188.9 kB / 358.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.1293, allocations: 474 kB / 359.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1294, allocations: 41.7 kB / 359.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.1296, allocations: 435.4 kB / 359.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.1298, allocations: 280 kB / 359.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.1301, allocations: 170.5 kB / 360.1 MB, free: 3.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1302, allocations: 378.7 kB / 360.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.1308, allocations: 269.9 kB / 360.7 MB, free: 2.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/0.1314, allocations: 0.5239 MB / 361.3 MB, free: 2.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.1326, allocations: 0.8031 MB / 362.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1327, allocations: 0 / 362.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00188/0.1345, allocations: 1.076 MB / 363.1 MB, free: 128 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1346, allocations: 8 kB / 363.2 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1346, allocations: 4 kB / 363.2 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008325/0.1354, allocations: 273.7 kB / 363.4 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005748/0.136, allocations: 163.7 kB / 363.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005064/0.1411, allocations: 4.859 MB / 368.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005864/0.1417, allocations: 111.2 kB / 368.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.1418, allocations: 39.98 kB / 368.6 MB, free: 10.4 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,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 (90): * Single equations (assignments): 88 * 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.0004289/0.1422, allocations: 245.6 kB / 368.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1423, allocations: 75.08 kB / 368.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.1442, allocations: 0.9715 MB / 369.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1442, allocations: 8 kB / 369.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1443, allocations: 0 / 369.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.1443, allocations: 3.984 kB / 369.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.1473, allocations: 1.936 MB / 371.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.1473, allocations: 8.031 kB / 371.8 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.1478, allocations: 99.81 kB / 371.9 MB, free: 6.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000736/0.1485, allocations: 265.5 kB / 372.2 MB, free: 6.699 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.532e-05/0.1486, allocations: 19.98 kB / 372.2 MB, free: 6.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004995/0.1536, allocations: 4.809 MB / 377 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1536, allocations: 0 / 377 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/0.156, allocations: 1.396 MB / 378.4 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1504/0.3064, allocations: 209.9 kB / 378.6 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.3068, allocations: 21.19 kB / 378.6 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007059/0.3075, allocations: 41.73 kB / 378.7 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002597/0.3078, allocations: 71.39 kB / 378.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.409e-05/0.3079, allocations: 26.92 kB / 378.8 MB, free: 52.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004698/0.3083, allocations: 321.2 kB / 379.1 MB, free: 52.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3083, allocations: 0 / 379.1 MB, free: 52.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001382/0.3097, allocations: 318.3 kB / 379.4 MB, free: 52.33 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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * 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 (59): * Single equations (assignments): 54 * 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.0003472/0.3101, allocations: 154.4 kB / 379.6 MB, free: 52.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002304/0.3124, allocations: 1.106 MB / 380.7 MB, free: 52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.3124, allocations: 1.188 kB / 380.7 MB, free: 52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.3136, allocations: 0.7475 MB / 381.4 MB, free: 51.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.3143, allocations: 116.4 kB / 381.5 MB, free: 51.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.3172, allocations: 1.675 MB / 383.2 MB, free: 51.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.3177, allocations: 0.9958 MB / 384.2 MB, free: 50.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003258/0.318, allocations: 85.09 kB / 384.3 MB, free: 50.4 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3182, allocations: 53.05 kB / 384.3 MB, free: 50.39 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3182, allocations: 7.656 kB / 384.3 MB, free: 50.39 MB / 318.1 MB Notification: Performance of Templates: time 0.01952/0.3377, allocations: 12.49 MB / 396.8 MB, free: 46.38 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches