Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.3..i|transformer2.l2sigma.inductor.1..i|transformer2.l2sigma.inductor.2..i|transformer2.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse") translateModel(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.3..i|transformer2.l2sigma.inductor.1..i|transformer2.l2sigma.inductor.2..i|transformer2.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007683/0.0007683, allocations: 99.84 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.000292, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2515, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.009217/0.2608, allocations: 9.375 MB / 383.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007609/0.2685, allocations: 3.148 MB / 387.1 MB, free: 35.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001875/0.2704, allocations: 64.44 kB / 387.1 MB, free: 35.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001195/0.2716, allocations: 0.5361 MB / 387.7 MB, free: 34.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.2736, allocations: 1.009 MB / 388.7 MB, free: 34.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006828/0.2743, allocations: 305.2 kB / 389 MB, free: 33.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004598/0.2789, allocations: 5.446 MB / 394.4 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002615/0.2816, allocations: 2.878 MB / 397.3 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.2844, allocations: 1.74 MB / 399.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.2872, allocations: 2.237 MB / 401.3 MB, free: 22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004604/0.2877, allocations: 280 kB / 401.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009852/0.2887, allocations: 335.9 kB / 401.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008317/0.2895, allocations: 1.215 MB / 403.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.2905, allocations: 0.9369 MB / 404 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005275/0.2958, allocations: 6.825 MB / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.2959, allocations: 0 / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.566e-06/0.2959, allocations: 0 / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003541/0.2962, allocations: 0 / 410.9 MB, free: 12.39 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1046 * Number of variables: 1046 Notification: Performance of Generate backend data structure: time 0.009917/0.3062, allocations: 4.3 MB / 415.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3062, allocations: 8.031 kB / 415.2 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002358/0.3086, allocations: 0.5528 MB / 415.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005183/0.3138, allocations: 2.515 MB / 418.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.314, allocations: 295.8 kB / 418.5 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005935/0.3146, allocations: 384 kB / 418.9 MB, free: 4.195 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.3262, allocations: 5.77 MB / 424.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.657e-05/0.3263, allocations: 3.938 kB / 424.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004425/0.3268, allocations: 160 kB / 424.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002508/0.327, allocations: 204 kB / 425 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009898/0.3369, allocations: 4.997 MB / 430 MB, free: 8.961 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03134/0.3683, allocations: 16.5 MB / 446.5 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009767/0.3781, allocations: 6.812 MB / 453.3 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005553/0.3837, allocations: 2.673 MB / 456 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004052/0.3842, allocations: 139.1 kB / 456.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.737e-05/0.3843, allocations: 64.5 kB / 456.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=249): time 8.005e-06/0.3843, allocations: 0 / 456.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=256): time 0.02774/0.4121, allocations: 10.71 MB / 466.9 MB, free: 2.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.4122, allocations: 77.42 kB / 467 MB, free: 2.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006671/0.4189, allocations: 2.616 MB / 469.6 MB, free: 236 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005455/0.4195, allocations: 73.64 kB / 469.7 MB, free: 156 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/0.4213, allocations: 1.636 MB / 471.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001415/0.4227, allocations: 0.8394 MB / 472.2 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003778/0.4231, allocations: 48 kB / 472.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003285/0.4234, allocations: 398.7 kB / 472.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003352/0.4268, allocations: 1.34 MB / 473.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003571/0.4304, allocations: 1.65 MB / 475.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/0.4342, allocations: 1.577 MB / 477.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.4343, allocations: 0 / 477.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01158/0.4459, allocations: 4.449 MB / 481.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.4459, allocations: 4 kB / 481.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.889e-05/0.446, allocations: 8 kB / 481.6 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00695/0.4529, allocations: 1.651 MB / 483.3 MB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.4546, allocations: 391.5 kB / 483.7 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1784/0.6331, allocations: 23.47 MB / 0.4952 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.6349, allocations: 94.48 kB / 0.4953 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.635, allocations: 78.22 kB / 0.4954 GB, free: 100.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 12 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9,(2,100.0%) 29} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.002326/0.6374, allocations: 1.404 MB / 0.4968 GB, free: 99.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.6379, allocations: 296.1 kB / 0.4971 GB, free: 99.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006688/0.6446, allocations: 4.375 MB / 0.5013 GB, free: 97.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/0.6446, allocations: 24.31 kB / 0.5014 GB, free: 97.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.6446, allocations: 8.844 kB / 0.5014 GB, free: 97.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.01e-05/0.6447, allocations: 17.34 kB / 0.5014 GB, free: 97.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.6563, allocations: 8.893 MB / 0.5101 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.6564, allocations: 0 / 0.5101 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.6574, allocations: 296.3 kB / 0.5104 GB, free: 93.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004598/0.6621, allocations: 1.616 MB / 0.5119 GB, free: 92.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.6622, allocations: 59.98 kB / 0.512 GB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01644/0.6786, allocations: 23.24 MB / 0.5347 GB, free: 67.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6787, allocations: 8 kB / 0.5347 GB, free: 67.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007774/0.6865, allocations: 6.076 MB / 0.5406 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.6879, allocations: 0.677 MB / 0.5413 GB, free: 60.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.6883, allocations: 67.97 kB / 0.5413 GB, free: 60.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.6895, allocations: 128.9 kB / 0.5415 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004472/0.69, allocations: 209.7 kB / 0.5417 GB, free: 60.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.6901, allocations: 67.92 kB / 0.5417 GB, free: 60.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002177/0.6923, allocations: 1.833 MB / 0.5435 GB, free: 58.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.6923, allocations: 0 / 0.5435 GB, free: 58.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003021/0.6953, allocations: 0.9558 MB / 0.5445 GB, free: 57.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i,transformer2.l2sigma.inductor[1].i,transformer2.l2sigma.inductor[2].i,transformer2.l2sigma.inductor[3].i) * Number of discrete variables: 12 (diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (151): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 29,(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005478/0.6959, allocations: 205.5 kB / 0.5447 GB, free: 57.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006059/0.702, allocations: 4.848 MB / 0.5494 GB, free: 52.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.702, allocations: 5.531 kB / 0.5494 GB, free: 52.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/0.7059, allocations: 3.336 MB / 0.5527 GB, free: 49.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004247/0.7102, allocations: 0.9307 MB / 0.5536 GB, free: 48.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.724, allocations: 9.879 MB / 0.5632 GB, free: 38.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/0.7265, allocations: 3.107 MB / 0.5662 GB, free: 35.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008565/0.7274, allocations: 167.4 kB / 0.5664 GB, free: 34.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7274, allocations: 3.938 kB / 0.5664 GB, free: 34.94 MB / 378.7 MB Notification: Performance of Templates: time 0.549/1.276, allocations: 260.7 MB / 0.821 GB, free: 152.3 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/Rectifier12pulse/Rectifier12pulse.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches