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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_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.001109/0.00111, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001003/0.001004, allocations: 181.2 kB / 17.19 MB, free: 5.906 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.511/1.511, allocations: 223.2 MB / 241.1 MB, free: 5.48 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 5.969 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 50.43 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006075/0.1317, allocations: 5.049 MB / 356.3 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004253/0.136, allocations: 2.018 MB / 358.3 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006243/0.1367, allocations: 16 kB / 358.3 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006221/0.1373, allocations: 206.6 kB / 358.5 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001609/0.139, allocations: 0.693 MB / 359.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000917/0.1399, allocations: 367.2 kB / 359.6 MB, free: 3.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009661/0.1409, allocations: 0.7644 MB / 360.3 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.1424, allocations: 0.9179 MB / 361.2 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.1428, allocations: 354.6 kB / 361.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005834/0.1434, allocations: 450 kB / 362 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.1436, allocations: 48 kB / 362.1 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004922/0.1441, allocations: 183.7 kB / 362.3 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1442, allocations: 167.3 kB / 362.4 MB, free: 408 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.1444, allocations: 213.1 kB / 362.6 MB, free: 188 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.1455, allocations: 1.059 MB / 363.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1455, allocations: 0 / 363.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1455, allocations: 3.938 kB / 363.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.1455, allocations: 0 / 363.7 MB, free: 15.12 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.002946/0.1485, allocations: 1.26 MB / 365 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.1485, allocations: 8.031 kB / 365 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002655/0.1488, allocations: 162.2 kB / 365.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002088/0.1509, allocations: 374.4 kB / 365.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008704/0.1518, allocations: 0.5451 MB / 366 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.038e-05/0.1519, allocations: 74 kB / 366.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.152, allocations: 100 kB / 366.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.1537, allocations: 1.016 MB / 367.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.1537, allocations: 0 / 367.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.948e-05/0.1538, allocations: 43.95 kB / 367.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.1538, allocations: 28 kB / 367.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.1555, allocations: 0.8783 MB / 368.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005156/0.1606, allocations: 3.558 MB / 371.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.1629, allocations: 1.915 MB / 373.6 MB, free: 4.641 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.163, allocations: 89.77 kB / 373.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008591/0.1639, allocations: 0.4969 MB / 374.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.435e-06/0.1639, allocations: 4 kB / 374.2 MB, free: 4 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004279/0.1682, allocations: 1.661 MB / 375.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.1683, allocations: 196.9 kB / 376.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005546/0.1689, allocations: 465.9 kB / 376.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.573e-05/0.169, allocations: 41.7 kB / 376.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.1693, allocations: 415.5 kB / 377 MB, free: 1.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.1695, allocations: 272.1 kB / 377.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.1695, allocations: 19.94 kB / 377.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1697, allocations: 374.8 kB / 377.6 MB, free: 476 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005248/0.1702, allocations: 277.9 kB / 377.9 MB, free: 200 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007163/0.171, allocations: 487.2 kB / 378.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.1716, allocations: 331.1 kB / 378.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.1716, allocations: 0 / 378.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001922/0.1735, allocations: 1.045 MB / 379.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.1736, allocations: 12.03 kB / 379.8 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.1736, allocations: 8 kB / 379.8 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008624/0.1745, allocations: 269.2 kB / 380 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005803/0.1751, allocations: 151.7 kB / 380.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005223/0.1803, allocations: 4.481 MB / 384.7 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007625/0.1811, allocations: 99.16 kB / 384.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.977e-05/0.1811, allocations: 40.06 kB / 384.8 MB, free: 8.93 MB / 318.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,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0004699/0.1816, allocations: 253.4 kB / 385 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.1817, allocations: 75.28 kB / 385.1 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.1838, allocations: 1.002 MB / 386.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.1838, allocations: 12 kB / 386.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1839, allocations: 0 / 386.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.1839, allocations: 7.984 kB / 386.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/0.187, allocations: 1.924 MB / 388.1 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.1871, allocations: 0 / 388.1 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.1875, allocations: 99.88 kB / 388.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/0.1883, allocations: 276.2 kB / 388.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.1883, allocations: 19.98 kB / 388.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004935/0.1933, allocations: 4.407 MB / 392.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1933, allocations: 0 / 392.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/0.1959, allocations: 1.415 MB / 394.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.1962, allocations: 216 kB / 394.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.502e-05/0.1963, allocations: 16 kB / 394.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.1968, allocations: 51.97 kB / 394.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.1969, allocations: 68.89 kB / 394.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.197, allocations: 28 kB / 394.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000365/0.1974, allocations: 310.8 kB / 394.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1974, allocations: 4 kB / 394.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001151/0.1985, allocations: 311.2 kB / 395.3 MB, free: 14.06 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (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.002874/0.2014, allocations: 2.073 MB / 397.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002101/0.2035, allocations: 1.104 MB / 398.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.2036, allocations: 320 / 398.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.2047, allocations: 0.751 MB / 399.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/0.2053, allocations: 106 kB / 399.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005115/0.2104, allocations: 5.992 MB / 405.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006082/0.2111, allocations: 1.018 MB / 406.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.2115, allocations: 81.33 kB / 406.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004004/0.2119, allocations: 315.3 kB / 406.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2119, allocations: 0 / 406.7 MB, free: 2.367 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.2463, allocations: 16.96 MB / 423.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.2465, allocations: 232.7 kB / 423.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/2.64, allocations: 0 / 423.9 MB, free: 1.461 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat