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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009761/0.0009761, allocations: 180.6 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008363/0.0008359, allocations: 92.14 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003181, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2387, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.3395, allocations: 87.05 MB / 463 MB, free: 9.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.3398, allocations: 83.95 kB / 463 MB, free: 9.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05348/0.3933, allocations: 22.5 MB / 485.5 MB, free: 2.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3934, allocations: 7.938 kB / 485.5 MB, free: 2.801 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.674e-05/0.3934, allocations: 16 kB / 485.6 MB, free: 2.785 MB / 362.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.002221/0.3956, allocations: 1.232 MB / 486.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3957, allocations: 8.031 kB / 486.8 MB, free: 1.488 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002182/0.3959, allocations: 162.5 kB / 487 MB, free: 1.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00196/0.3979, allocations: 378.2 kB / 487.3 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007055/0.3986, allocations: 0.5373 MB / 487.9 MB, free: 376 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/0.3986, allocations: 82.05 kB / 488 MB, free: 292 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3988, allocations: 104 kB / 488.1 MB, free: 188 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.4004, allocations: 1.059 MB / 489.1 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.4005, allocations: 4 kB / 489.1 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.784e-05/0.4006, allocations: 43.98 kB / 489.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.4006, allocations: 24 kB / 489.2 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.4022, allocations: 0.9486 MB / 490.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00502/0.4072, allocations: 3.806 MB / 493.9 MB, free: 10.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.4096, allocations: 2.487 MB / 496.4 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.913e-05/0.4097, allocations: 93.75 kB / 496.5 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007818/0.4105, allocations: 0.4969 MB / 497 MB, free: 6.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.314e-06/0.4105, allocations: 0 / 497 MB, free: 6.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003993/0.4145, allocations: 1.696 MB / 498.7 MB, free: 4.836 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.031e-05/0.4146, allocations: 192.9 kB / 498.9 MB, free: 4.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.4151, allocations: 417.1 kB / 499.3 MB, free: 4.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.857e-05/0.4151, allocations: 45.73 kB / 499.3 MB, free: 4.137 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.4154, allocations: 427.4 kB / 499.8 MB, free: 3.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.4157, allocations: 287.8 kB / 0.4883 GB, free: 3.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.4157, allocations: 20 kB / 0.4883 GB, free: 3.406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4159, allocations: 374.8 kB / 0.4887 GB, free: 3.031 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005356/0.4164, allocations: 285.9 kB / 0.489 GB, free: 2.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006476/0.4171, allocations: 0.5278 MB / 0.4895 GB, free: 2.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006005/0.4177, allocations: 343.1 kB / 0.4898 GB, free: 1.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/0.4177, allocations: 0 / 0.4898 GB, free: 1.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002032/0.4197, allocations: 1.104 MB / 0.4909 GB, free: 0.668 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.4198, allocations: 16.02 kB / 0.4909 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.4198, allocations: 7.984 kB / 0.4909 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008171/0.4206, allocations: 264.2 kB / 0.4912 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.4212, allocations: 163.7 kB / 0.4913 GB, free: 228 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1774/0.5986, allocations: 4.474 MB / 0.4957 GB, free: 96.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000784/0.5994, allocations: 111.5 kB / 0.4958 GB, free: 96.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.36e-05/0.5995, allocations: 36.47 kB / 0.4958 GB, free: 96.57 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 () * 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 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004345/0.5999, allocations: 265.3 kB / 0.4961 GB, free: 96.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.6, allocations: 71.94 kB / 0.4962 GB, free: 96.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.602, allocations: 0.9957 MB / 0.4971 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.602, allocations: 9.031 kB / 0.4971 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.6021, allocations: 5.109 kB / 0.4971 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.6021, allocations: 3.797 kB / 0.4971 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002913/0.605, allocations: 1.983 MB / 0.4991 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.605, allocations: 0 / 0.4991 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004797/0.6055, allocations: 109.9 kB / 0.4992 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007537/0.6063, allocations: 259.1 kB / 0.4994 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.6063, allocations: 22.83 kB / 0.4995 GB, free: 95.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004269/0.6106, allocations: 4.441 MB / 0.5038 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6106, allocations: 0.9375 kB / 0.5038 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.613, allocations: 1.435 MB / 0.5052 GB, free: 92.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.6133, allocations: 214.7 kB / 0.5054 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.6134, allocations: 18.97 kB / 0.5054 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004352/0.6138, allocations: 49.98 kB / 0.5055 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.6139, allocations: 75.31 kB / 0.5055 GB, free: 92.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.614, allocations: 21.66 kB / 0.5056 GB, free: 92.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.6143, allocations: 319.7 kB / 0.5059 GB, free: 92.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6143, allocations: 0 / 0.5059 GB, free: 92.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00105/0.6154, allocations: 327.2 kB / 0.5062 GB, free: 92.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.002358/0.6177, allocations: 2.105 MB / 0.5082 GB, free: 91.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.6194, allocations: 1.126 MB / 0.5093 GB, free: 90.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.6194, allocations: 0 / 0.5093 GB, free: 90.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009446/0.6204, allocations: 0.7532 MB / 0.5101 GB, free: 90.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.6209, allocations: 109.1 kB / 0.5102 GB, free: 90.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005173/0.6261, allocations: 7.51 MB / 0.5175 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.6264, allocations: 1.025 MB / 0.5185 GB, free: 83.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003578/0.6268, allocations: 83 kB / 0.5186 GB, free: 83.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.6271, allocations: 326 kB / 0.5189 GB, free: 83.25 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.6271, allocations: 0 / 0.5189 GB, free: 83.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.6558, allocations: 17.39 MB / 0.5359 GB, free: 76.24 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.656, allocations: 227.8 kB / 0.5361 GB, free: 76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.32/2.976, allocations: 3.906 kB / 0.5361 GB, free: 75.99 MB / 378.7 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) 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