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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",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.001311/0.00131, allocations: 92.97 kB / 16.95 MB, free: 6.457 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.001517/0.001517, allocations: 182.7 kB / 17.84 MB, free: 6.008 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.685/1.685, allocations: 205.4 MB / 224 MB, free: 13.14 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.0005787/0.000579, allocations: 16 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1144, allocations: 47.58 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006808/0.1212, allocations: 5.421 MB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004462/0.1257, allocations: 2.018 MB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.1269, allocations: 16 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009823/0.1279, allocations: 206.7 kB / 336.1 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.1305, allocations: 0.6492 MB / 336.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.1319, allocations: 371.2 kB / 337.1 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00197/0.1339, allocations: 1.082 MB / 338.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002205/0.1361, allocations: 0.9336 MB / 339.1 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008358/0.1369, allocations: 370.5 kB / 339.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.1381, allocations: 461.9 kB / 339.9 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003546/0.1385, allocations: 55.94 kB / 340 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009331/0.1394, allocations: 191.8 kB / 340.2 MB, free: 8.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000302/0.1397, allocations: 175.2 kB / 340.4 MB, free: 7.961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004294/0.1402, allocations: 213.1 kB / 340.6 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.1418, allocations: 1.071 MB / 341.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1418, allocations: 0 / 341.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1418, allocations: 0 / 341.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.221e-05/0.1419, allocations: 0 / 341.6 MB, free: 6.672 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.003576/0.1455, allocations: 1.28 MB / 342.9 MB, free: 5.336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.1456, allocations: 8.031 kB / 342.9 MB, free: 5.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004938/0.1461, allocations: 158.5 kB / 343.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003/0.1491, allocations: 486.2 kB / 343.6 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.1504, allocations: 0.5529 MB / 344.1 MB, free: 4.094 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.302e-05/0.1505, allocations: 81.98 kB / 344.2 MB, free: 4.012 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002452/0.1507, allocations: 107.9 kB / 344.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.1531, allocations: 1.059 MB / 345.4 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/0.1532, allocations: 0 / 345.4 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.1533, allocations: 44 kB / 345.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/0.1534, allocations: 27.94 kB / 345.4 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.1554, allocations: 0.9292 MB / 346.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006645/0.1621, allocations: 3.777 MB / 350.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.1649, allocations: 2.505 MB / 352.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009091/0.1658, allocations: 475.5 kB / 353.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.166, allocations: 101.7 kB / 353.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009614/0.1669, allocations: 0.5047 MB / 353.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.045e-06/0.167, allocations: 0 / 353.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004562/0.1715, allocations: 1.714 MB / 355.4 MB, free: 8.082 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.1717, allocations: 200.8 kB / 355.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006905/0.1724, allocations: 465.9 kB / 356.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.002e-05/0.1725, allocations: 49.69 kB / 356.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004131/0.1729, allocations: 435.4 kB / 356.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.1732, allocations: 276 kB / 356.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.1732, allocations: 24.03 kB / 356.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1734, allocations: 374.8 kB / 357.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000584/0.174, allocations: 281.9 kB / 357.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007412/0.1747, allocations: 0.5356 MB / 358 MB, free: 5.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006809/0.1754, allocations: 339 kB / 358.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.1755, allocations: 0 / 358.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002104/0.1776, allocations: 1.096 MB / 359.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.1776, allocations: 8 kB / 359.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.1776, allocations: 8 kB / 359.5 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008863/0.1785, allocations: 271.7 kB / 359.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/0.1791, allocations: 163.7 kB / 359.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005436/0.1846, allocations: 4.389 MB / 364.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006795/0.1853, allocations: 111.2 kB / 364.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.666e-05/0.1854, allocations: 36 kB / 364.4 MB, free: 14.61 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,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005098/0.1859, allocations: 249.6 kB / 364.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.1861, allocations: 71.16 kB / 364.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/0.1881, allocations: 0.9949 MB / 365.7 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.1881, allocations: 8 kB / 365.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1881, allocations: 3.953 kB / 365.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.1881, allocations: 3.984 kB / 365.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.1915, allocations: 1.963 MB / 367.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.1915, allocations: 8.031 kB / 367.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.1919, allocations: 103.9 kB / 367.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007371/0.1927, allocations: 261.6 kB / 368.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.023e-05/0.1927, allocations: 23.92 kB / 368.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004951/0.1977, allocations: 4.348 MB / 372.4 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1977, allocations: 3.953 kB / 372.4 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/0.2002, allocations: 1.419 MB / 373.9 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003249/0.2005, allocations: 216 kB / 374.1 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.145e-05/0.2006, allocations: 16.19 kB / 374.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.201, allocations: 55.95 kB / 374.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.2012, allocations: 68.84 kB / 374.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.713e-05/0.2013, allocations: 27.98 kB / 374.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003905/0.2017, allocations: 314.9 kB / 374.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2017, allocations: 0 / 374.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0012/0.2029, allocations: 319.1 kB / 374.9 MB, free: 3.762 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.002919/0.2058, allocations: 2.003 MB / 376.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002309/0.2081, allocations: 1.128 MB / 378 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.2082, allocations: 384 / 378 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2011/0.4093, allocations: 0.7489 MB / 378.7 MB, free: 51.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.4104, allocations: 114.2 kB / 378.8 MB, free: 51.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008706/0.4191, allocations: 4.75 MB / 383.6 MB, free: 49.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000747/0.4199, allocations: 1.002 MB / 384.6 MB, free: 49.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000526/0.4204, allocations: 87.03 kB / 384.7 MB, free: 49.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004716/0.4209, allocations: 328.6 kB / 385 MB, free: 49.19 MB / 318.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4209, allocations: 0 / 385 MB, free: 49.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03938/0.4603, allocations: 17.48 MB / 402.5 MB, free: 40.26 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002922/0.4607, allocations: 237.3 kB / 402.7 MB, free: 40.02 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.488/2.948, allocations: 0 / 402.7 MB, free: 40.02 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat