Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.000475, allocations: 8 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3149, allocations: 44.5 MB / 308.6 MB, free: 12.56 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.4636, allocations: 82.13 MB / 390.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003098/0.464, allocations: 87.94 kB / 390.8 MB, free: 10.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05635/0.5203, allocations: 13.1 MB / 403.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.258e-06/0.5204, allocations: 3.938 kB / 403.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.801e-05/0.5205, allocations: 23.94 kB / 403.9 MB, free: 13.02 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.003061/0.5236, allocations: 0.9407 MB / 404.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/0.5237, allocations: 8.031 kB / 404.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002729/0.5239, allocations: 102.5 kB / 405 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.5242, allocations: 87.02 kB / 405.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.5253, allocations: 0.4939 MB / 405.5 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.486e-05/0.5254, allocations: 53.31 kB / 405.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.5256, allocations: 64 kB / 405.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.5275, allocations: 0.6826 MB / 406.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.5276, allocations: 3.938 kB / 406.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/0.5277, allocations: 31.98 kB / 406.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.5277, allocations: 12 kB / 406.4 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.5294, allocations: 0.5243 MB / 406.9 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005878/0.5353, allocations: 2.604 MB / 409.5 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.5373, allocations: 0.5683 MB / 410.1 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.764e-05/0.5373, allocations: 8.844 kB / 410.1 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008894/0.5382, allocations: 353.6 kB / 410.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.076e-06/0.5383, allocations: 0 / 410.4 MB, free: 6.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.006789/0.5451, allocations: 0.9809 MB / 411.4 MB, free: 5.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.5452, allocations: 115.3 kB / 411.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/0.5472, allocations: 425 kB / 412 MB, free: 4.641 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.5474, allocations: 53.69 kB / 412 MB, free: 4.582 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005048/0.548, allocations: 316.3 kB / 412.3 MB, free: 4.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.5483, allocations: 157.7 kB / 412.5 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.531e-05/0.5484, allocations: 12 kB / 412.5 MB, free: 4.098 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000354/0.5488, allocations: 366.8 kB / 412.8 MB, free: 3.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.55, allocations: 201.2 kB / 413 MB, free: 3.531 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.5514, allocations: 360.1 kB / 413.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.5528, allocations: 226 kB / 413.6 MB, free: 2.898 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.5528, allocations: 0 / 413.6 MB, free: 2.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003587/0.5564, allocations: 0.6947 MB / 414.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001121/0.5576, allocations: 1.574 MB / 415.9 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.806e-05/0.5577, allocations: 8 kB / 415.9 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.5591, allocations: 152.7 kB / 416 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008695/0.56, allocations: 87.88 kB / 416.1 MB, free: 256 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2751/0.8351, allocations: 2.384 MB / 418.5 MB, free: 90.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.8363, allocations: 93.31 kB / 418.6 MB, free: 90.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.784e-05/0.8364, allocations: 20.78 kB / 418.6 MB, free: 90.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.8365, allocations: 4.656 kB / 418.6 MB, free: 90.47 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002514/0.839, allocations: 0.5963 MB / 419.2 MB, free: 90.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.839, allocations: 3.938 kB / 419.2 MB, free: 90.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.8401, allocations: 157.7 kB / 419.4 MB, free: 90.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.8417, allocations: 80.47 kB / 419.5 MB, free: 90.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005505/0.8473, allocations: 2.398 MB / 421.8 MB, free: 89.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009766/0.8483, allocations: 66.33 kB / 421.9 MB, free: 89.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.523e-05/0.8484, allocations: 28.45 kB / 421.9 MB, free: 89.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.00069/0.8491, allocations: 309 kB / 422.2 MB, free: 88.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.8493, allocations: 63.62 kB / 422.3 MB, free: 88.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.8495, allocations: 71.66 kB / 422.4 MB, free: 88.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.8495, allocations: 8.906 kB / 422.4 MB, free: 88.9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.8495, allocations: 0 / 422.4 MB, free: 88.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.8496, allocations: 4.172 kB / 422.4 MB, free: 88.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.853, allocations: 1.356 MB / 423.7 MB, free: 88.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.853, allocations: 0 / 423.7 MB, free: 88.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004013/0.8534, allocations: 40.39 kB / 423.8 MB, free: 88.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006678/0.8541, allocations: 152.2 kB / 423.9 MB, free: 88.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.8542, allocations: 11.73 kB / 423.9 MB, free: 88.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003696/0.8579, allocations: 2.298 MB / 426.2 MB, free: 86.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.8579, allocations: 0 / 426.2 MB, free: 86.76 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.8601, allocations: 0.9159 MB / 427.2 MB, free: 86.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.8604, allocations: 182.1 kB / 427.3 MB, free: 86.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.8605, allocations: 20.8 kB / 427.4 MB, free: 86.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/0.8611, allocations: 41.81 kB / 427.4 MB, free: 86.13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.8614, allocations: 67.55 kB / 427.5 MB, free: 86.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.158e-05/0.8615, allocations: 18.5 kB / 427.5 MB, free: 86.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005932/0.8621, allocations: 342.5 kB / 427.8 MB, free: 85.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8621, allocations: 2.812 kB / 427.8 MB, free: 85.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001339/0.8634, allocations: 332.2 kB / 428.1 MB, free: 85.9 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002409/0.8659, allocations: 1.482 MB / 429.6 MB, free: 84.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002744/0.8686, allocations: 1.203 MB / 430.8 MB, free: 84.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.8687, allocations: 0 / 430.8 MB, free: 84.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008987/0.8696, allocations: 459.5 kB / 431.3 MB, free: 84.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007739/0.8704, allocations: 97 kB / 431.4 MB, free: 84.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004044/0.8744, allocations: 4.482 MB / 435.9 MB, free: 80.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.8749, allocations: 0.9433 MB / 436.8 MB, free: 79.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005202/0.8755, allocations: 82.3 kB / 436.9 MB, free: 79.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.8758, allocations: 216.4 kB / 437.1 MB, free: 79.31 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.8759, allocations: 0 / 437.1 MB, free: 79.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04914/0.925, allocations: 14.96 MB / 452 MB, free: 68.98 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.9253, allocations: 260.8 kB / 452.3 MB, free: 68.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.148/4.074, allocations: 4 kB / 452.3 MB, free: 68.62 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat