Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001094/0.001094, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.302e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 47.58 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.533, allocations: 86.95 MB / 456.1 MB, free: 6.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5333, allocations: 80.77 kB / 456.2 MB, free: 6.281 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09235/0.6257, allocations: 22.47 MB / 478.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.6258, allocations: 0 / 478.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.901e-05/0.6258, allocations: 19.94 kB / 478.7 MB, free: 1.398 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003854/0.6297, allocations: 1.154 MB / 479.9 MB, free: 196 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.472e-05/0.6298, allocations: 8.031 kB / 479.9 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004838/0.6303, allocations: 166.4 kB / 480 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/0.6337, allocations: 374.2 kB / 480.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.6353, allocations: 0.5412 MB / 480.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.6354, allocations: 78.05 kB / 481 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002561/0.6357, allocations: 111.9 kB / 481.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/0.6386, allocations: 0.9971 MB / 482.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.51e-05/0.6387, allocations: 3.938 kB / 482.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.6389, allocations: 40 kB / 482.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.803e-05/0.639, allocations: 31.95 kB / 482.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/0.6416, allocations: 0.8474 MB / 483.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009993/0.6516, allocations: 3.797 MB / 486.9 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004145/0.6558, allocations: 2.457 MB / 489.3 MB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.6573, allocations: 424 kB / 489.7 MB, free: 5.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001926/0.6575, allocations: 93.89 kB / 489.8 MB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.6587, allocations: 465.5 kB / 490.3 MB, free: 5.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 6.102e-06/0.6587, allocations: 0 / 490.3 MB, free: 5.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.002861/0.6616, allocations: 0.841 MB / 491.1 MB, free: 4.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.6617, allocations: 200.6 kB / 491.3 MB, free: 3.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.6626, allocations: 411.8 kB / 491.7 MB, free: 3.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.6628, allocations: 41.7 kB / 491.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000456/0.6633, allocations: 469.8 kB / 492.2 MB, free: 3.066 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004487/0.6637, allocations: 287.9 kB / 492.5 MB, free: 2.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/0.6638, allocations: 20 kB / 492.5 MB, free: 2.762 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.664, allocations: 346.8 kB / 492.8 MB, free: 2.414 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007806/0.6648, allocations: 242 kB / 493.1 MB, free: 2.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.6659, allocations: 496.7 kB / 493.6 MB, free: 1.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009871/0.6669, allocations: 308.8 kB / 493.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.667, allocations: 0 / 493.9 MB, free: 1.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00296/0.6699, allocations: 0.9784 MB / 494.8 MB, free: 300 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.67, allocations: 8 kB / 494.9 MB, free: 292 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.67, allocations: 4 kB / 494.9 MB, free: 288 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.6715, allocations: 271.7 kB / 495.1 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.6728, allocations: 163.7 kB / 495.3 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008241/0.6811, allocations: 4.38 MB / 499.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.6824, allocations: 115.1 kB / 499.8 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.6825, allocations: 40 kB / 499.8 MB, free: 11.05 MB / 378.7 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 () * 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 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003043/0.6828, allocations: 169.5 kB / 500 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.683, allocations: 67.2 kB / 0.4883 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003106/0.6861, allocations: 0.9309 MB / 0.4892 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.6862, allocations: 11.95 kB / 0.4892 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6862, allocations: 0 / 0.4892 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.6862, allocations: 3.984 kB / 0.4893 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/0.6912, allocations: 1.89 MB / 0.4911 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.6912, allocations: 0 / 0.4911 GB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009113/0.6922, allocations: 111.8 kB / 0.4912 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/0.6935, allocations: 257.7 kB / 0.4914 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.645e-05/0.6936, allocations: 27.95 kB / 0.4915 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007802/0.7015, allocations: 4.347 MB / 0.4957 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7015, allocations: 0 / 0.4957 GB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003716/0.7052, allocations: 1.306 MB / 0.497 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005316/0.7058, allocations: 212.1 kB / 0.4972 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.706, allocations: 20 kB / 0.4972 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/0.7068, allocations: 51.97 kB / 0.4973 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002687/0.7071, allocations: 76.62 kB / 0.4973 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.7072, allocations: 20 kB / 0.4974 GB, free: 1.133 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005728/0.7078, allocations: 313.6 kB / 0.4977 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7078, allocations: 0 / 0.4977 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001504/0.7093, allocations: 331.2 kB / 0.498 GB, free: 0.5039 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.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) * 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.004304/0.7137, allocations: 2.055 MB / 0.5 GB, free: 14.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002949/0.7166, allocations: 1.04 MB / 0.501 GB, free: 13.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/0.7167, allocations: 8.047 kB / 0.501 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.7186, allocations: 0.6946 MB / 0.5017 GB, free: 12.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008764/0.7195, allocations: 101.6 kB / 0.5018 GB, free: 12.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0075/0.727, allocations: 1.946 MB / 0.5037 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/0.7279, allocations: 1.01 MB / 0.5047 GB, free: 9.477 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007171/0.7287, allocations: 331.3 kB / 0.505 GB, free: 9.152 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7287, allocations: 4 kB / 0.505 GB, free: 9.148 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.954/3.683, allocations: 20.64 MB / 0.5251 GB, free: 4.469 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat