Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 97.52 kB / 16.31 MB, free: 6.461 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.001571/0.001571, allocations: 173.9 kB / 17.19 MB, free: 6.348 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.392/1.392, allocations: 223.2 MB / 241.1 MB, free: 396 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002901/0.0002902, allocations: 5.531 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 50.41 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse): time 0.003731/0.1236, allocations: 3.009 MB / 354.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.1254, allocations: 0.9008 MB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.1256, allocations: 4.047 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.1258, allocations: 59.48 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.1262, allocations: 171.4 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003515/0.1265, allocations: 103.9 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004797/0.127, allocations: 399.2 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.1273, allocations: 157.7 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.1276, allocations: 175.3 kB / 356.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.1279, allocations: 215 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1279, allocations: 24 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.939e-05/0.128, allocations: 20 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.993e-05/0.1281, allocations: 79.67 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.1283, allocations: 117.5 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.1288, allocations: 462.7 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.1288, allocations: 0 / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.1288, allocations: 0 / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1288, allocations: 0 / 357.1 MB, free: 14.03 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001243/0.1301, allocations: 0.7035 MB / 357.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.1301, allocations: 8.031 kB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.1302, allocations: 86.53 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.1304, allocations: 59.3 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.1309, allocations: 351.1 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.131, allocations: 29 kB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-05/0.1311, allocations: 48 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00082/0.1319, allocations: 449.6 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1319, allocations: 7.938 kB / 358.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.79e-05/0.132, allocations: 23.98 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.132, allocations: 15.89 kB / 358.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.1327, allocations: 323.7 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/0.1355, allocations: 1.879 MB / 361.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008651/0.1364, allocations: 0.5958 MB / 361.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.1364, allocations: 12.33 kB / 361.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004566/0.1369, allocations: 265.2 kB / 361.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.205e-06/0.1369, allocations: 0 / 361.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002285/0.1392, allocations: 0.8499 MB / 362.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.776e-05/0.1393, allocations: 89.09 kB / 362.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.1397, allocations: 312.5 kB / 363.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.1397, allocations: 29.7 kB / 363.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.1399, allocations: 220.3 kB / 363.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.1401, allocations: 138 kB / 363.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.1401, allocations: 4 kB / 363.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.1403, allocations: 346.8 kB / 363.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.1405, allocations: 125 kB / 364 MB, free: 6.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.1409, allocations: 249 kB / 364.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.1412, allocations: 148 kB / 364.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1412, allocations: 0 / 364.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0008937/0.1421, allocations: 0.5127 MB / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1421, allocations: 8 kB / 364.9 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1421, allocations: 4 kB / 364.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005292/0.1427, allocations: 149 kB / 365.1 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.1429, allocations: 71.84 kB / 365.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002968/0.1459, allocations: 2.334 MB / 367.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.1462, allocations: 47.59 kB / 367.5 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.1463, allocations: 24.03 kB / 367.5 MB, free: 3.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,rectifier.diode_p1.off,rectifier.diode_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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.0003007/0.1466, allocations: 178.2 kB / 367.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.1466, allocations: 35.62 kB / 367.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.215e-05/0.1467, allocations: 44.3 kB / 367.8 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1468, allocations: 7.953 kB / 367.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1468, allocations: 7.938 kB / 367.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1468, allocations: 3.984 kB / 367.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001531/0.1483, allocations: 1.007 MB / 368.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1483, allocations: 0 / 368.8 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.1485, allocations: 43.91 kB / 368.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004037/0.1489, allocations: 144.7 kB / 369 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.149, allocations: 11.94 kB / 369 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2085/0.3575, allocations: 2.331 MB / 371.4 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3575, allocations: 1 kB / 371.4 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3587, allocations: 0.7097 MB / 372.1 MB, free: 23.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.3589, allocations: 152.8 kB / 372.2 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.3589, allocations: 7.656 kB / 372.2 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.3592, allocations: 17.17 kB / 372.2 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3593, allocations: 32.88 kB / 372.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.3593, allocations: 17.73 kB / 372.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002488/0.3596, allocations: 216.7 kB / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3596, allocations: 0 / 372.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006317/0.3602, allocations: 146.5 kB / 372.6 MB, free: 23.16 MB / 302.1 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p1.off,rectifier.diode_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00131/0.3615, allocations: 1.27 MB / 373.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009804/0.3625, allocations: 0.5439 MB / 374.5 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3625, allocations: 1.188 kB / 374.5 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000477/0.363, allocations: 382.8 kB / 374.8 MB, free: 22.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.3634, allocations: 65.34 kB / 374.9 MB, free: 22.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3656, allocations: 3.823 MB / 378.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3659, allocations: 0.8373 MB / 379.6 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.3661, allocations: 35.97 kB / 379.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.3662, allocations: 140.1 kB / 379.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3662, allocations: 4 kB / 379.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.3914, allocations: 9.373 MB / 389.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001608/0.3916, allocations: 260 kB / 389.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.116/2.508, allocations: 8 kB / 389.4 MB, free: 15.35 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.mat does not exist to compare? outputFormat=mat