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.001357/0.001357, allocations: 111.8 kB / 16.63 MB, free: 6.953 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.001557/0.001557, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.312/1.312, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009334/0.0009334, allocations: 47.02 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08866, allocations: 49.44 MB / 349.6 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007046/0.09574, allocations: 6.209 MB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003551/0.09933, allocations: 2.099 MB / 357.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004251/0.09978, allocations: 16 kB / 357.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.1016, allocations: 0.6881 MB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.103, allocations: 0.684 MB / 359.3 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008667/0.1039, allocations: 459 kB / 359.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.105, allocations: 1.16 MB / 360.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.1061, allocations: 0.8705 MB / 361.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000455/0.1066, allocations: 454.3 kB / 362.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000547/0.1071, allocations: 0.5406 MB / 362.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.1073, allocations: 112 kB / 362.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004399/0.1077, allocations: 275.8 kB / 363.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.1079, allocations: 243.1 kB / 363.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.1083, allocations: 0.548 MB / 363.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.1096, allocations: 1.421 MB / 365.3 MB, free: 4.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1096, allocations: 3.984 kB / 365.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1096, allocations: 0 / 365.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.1097, allocations: 0 / 365.3 MB, free: 4.902 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.002752/0.1124, allocations: 1.424 MB / 366.7 MB, free: 3.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1125, allocations: 12.03 kB / 366.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002141/0.1146, allocations: 363.3 kB / 367.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007652/0.1154, allocations: 0.554 MB / 367.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.494e-05/0.1154, allocations: 78.31 kB / 367.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.1156, allocations: 104.3 kB / 367.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.1173, allocations: 1.02 MB / 368.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.1174, allocations: 8 kB / 368.9 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.086e-05/0.1175, allocations: 40 kB / 368.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.993e-05/0.1175, allocations: 27.94 kB / 368.9 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.1191, allocations: 0.8511 MB / 369.8 MB, free: 316 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.146/0.2651, allocations: 3.53 MB / 373.3 MB, free: 23.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.2671, allocations: 1.892 MB / 375.2 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008488/0.268, allocations: 469.8 kB / 375.7 MB, free: 21.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.996e-05/0.2681, allocations: 95.08 kB / 375.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008037/0.2689, allocations: 0.4883 MB / 376.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.825e-06/0.2689, allocations: 0 / 376.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004283/0.2732, allocations: 1.689 MB / 377.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.2733, allocations: 197 kB / 378.1 MB, free: 20.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.2737, allocations: 453 kB / 378.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.2738, allocations: 43.73 kB / 378.6 MB, free: 20.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.274, allocations: 411.6 kB / 379 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.2742, allocations: 278.5 kB / 379.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.2744, allocations: 152.9 kB / 379.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.334e-05/0.2745, allocations: 372.9 kB / 379.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005185/0.275, allocations: 269.2 kB / 380.1 MB, free: 19.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.2756, allocations: 487.2 kB / 380.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.2767, allocations: 0.7424 MB / 381.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.2767, allocations: 1.094 kB / 381.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001794/0.2785, allocations: 1.02 MB / 382.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.2785, allocations: 10.56 kB / 382.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.2785, allocations: 6.125 kB / 382.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008227/0.2794, allocations: 277.9 kB / 382.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005652/0.2799, allocations: 140.3 kB / 382.7 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.2844, allocations: 4.875 MB / 387.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.2849, allocations: 95.2 kB / 387.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.285, allocations: 31.81 kB / 387.7 MB, free: 13.8 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.000287/0.2853, allocations: 254.8 kB / 388 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.379e-05/0.2854, allocations: 65.98 kB / 388 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.2873, allocations: 0.9657 MB / 389 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.2873, allocations: 12.97 kB / 389 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.2873, allocations: 0 / 389 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.2873, allocations: 5.578 kB / 389 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.2901, allocations: 1.914 MB / 390.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.2901, allocations: 5.156 kB / 390.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.2905, allocations: 97.5 kB / 391 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007045/0.2913, allocations: 269.5 kB / 391.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.2913, allocations: 18.25 kB / 391.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.2952, allocations: 4.807 MB / 396.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2952, allocations: 1.188 kB / 396.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.2974, allocations: 1.379 MB / 397.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.2976, allocations: 209.9 kB / 397.7 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.768e-05/0.2977, allocations: 16.84 kB / 397.7 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.2981, allocations: 45.95 kB / 397.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.2983, allocations: 75.38 kB / 397.8 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.2983, allocations: 21.41 kB / 397.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.2986, allocations: 313.8 kB / 398.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2986, allocations: 0 / 398.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009825/0.2996, allocations: 309.9 kB / 398.5 MB, free: 6.594 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.0002157/0.2999, allocations: 154.8 kB / 398.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.3018, allocations: 1.118 MB / 399.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3018, allocations: 0 / 399.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009229/0.3027, allocations: 0.7377 MB / 400.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005986/0.3034, allocations: 128.9 kB / 400.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.3057, allocations: 2.055 MB / 402.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.306, allocations: 0.9884 MB / 403.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.3064, allocations: 85.31 kB / 403.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.3065, allocations: 47.44 kB / 403.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3065, allocations: 0 / 403.8 MB, free: 2.797 MB / 302.1 MB Notification: Performance of Templates: time 0.01893/0.3254, allocations: 12.2 MB / 416 MB, free: 6.75 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