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.001028/0.001028, allocations: 177.8 kB / 8.697 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.638/1.638, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008683/0.0008682, allocations: 86.69 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.63e-05/1.605e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.09471, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4302, allocations: 86.53 MB / 449.7 MB, free: 9.262 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.4305, allocations: 80.08 kB / 449.8 MB, free: 9.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05341/0.4839, allocations: 22.21 MB / 472 MB, free: 7.191 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4839, allocations: 4 kB / 472 MB, free: 7.188 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.484, allocations: 20 kB / 472 MB, free: 7.168 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.00218/0.4862, allocations: 1.146 MB / 473.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4862, allocations: 16.03 kB / 473.2 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001974/0.4882, allocations: 373.5 kB / 473.5 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007371/0.489, allocations: 0.5399 MB / 474.1 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.568e-05/0.489, allocations: 36 kB / 474.1 MB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.4891, allocations: 60 kB / 474.2 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001257/0.4904, allocations: 0.7866 MB / 475 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.4918, allocations: 0.8321 MB / 475.8 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.4918, allocations: 4 kB / 475.8 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-05/0.4919, allocations: 7.984 kB / 475.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.4919, allocations: 27.95 kB / 475.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005276/0.4972, allocations: 3.61 MB / 479.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002357/0.4996, allocations: 2.416 MB / 481.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005366/0.5001, allocations: 360 kB / 482.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.5003, allocations: 93.88 kB / 482.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006713/0.5009, allocations: 436 kB / 482.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 3.767e-06/0.501, allocations: 4 kB / 482.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.001734/0.5027, allocations: 0.8254 MB / 483.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.909e-05/0.5028, allocations: 188.7 kB / 483.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004416/0.5033, allocations: 373 kB / 484.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.5033, allocations: 29.69 kB / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002758/0.5036, allocations: 427.4 kB / 484.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.5038, allocations: 279.8 kB / 484.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.5039, allocations: 0 / 484.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.504, allocations: 370.8 kB / 485.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.5044, allocations: 226.7 kB / 485.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005279/0.5049, allocations: 465.2 kB / 485.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006898/0.5056, allocations: 352.2 kB / 486.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.5056, allocations: 4 kB / 486.2 MB, free: 9.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001752/0.5074, allocations: 0.9586 MB / 487.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.5074, allocations: 8 kB / 487.2 MB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.5074, allocations: 11.95 kB / 487.2 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007765/0.5082, allocations: 259.8 kB / 487.4 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.5089, allocations: 167.7 kB / 487.6 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.5133, allocations: 4.187 MB / 491.8 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007386/0.5141, allocations: 99.05 kB / 491.9 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.5142, allocations: 40 kB / 491.9 MB, free: 3.562 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real 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.0002541/0.5144, allocations: 124.8 kB / 492 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001706/0.5161, allocations: 0.825 MB / 492.9 MB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.958e-05/0.5162, allocations: 71.16 kB / 492.9 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.5181, allocations: 0.8838 MB / 493.8 MB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.5181, allocations: 12.08 kB / 493.8 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.5181, allocations: 192 / 493.8 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.5182, allocations: 3.984 kB / 493.8 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/0.5212, allocations: 1.748 MB / 495.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.5212, allocations: 0 / 495.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.5217, allocations: 107.8 kB / 495.7 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007089/0.5224, allocations: 254 kB / 495.9 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.996e-05/0.5225, allocations: 11.98 kB / 496 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004519/0.527, allocations: 4.174 MB / 0.4884 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.5271, allocations: 4.031 kB / 0.4884 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.5293, allocations: 1.26 MB / 0.4896 GB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003318/0.5297, allocations: 212.1 kB / 0.4898 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.5298, allocations: 7.938 kB / 0.4899 GB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.5302, allocations: 43.95 kB / 0.4899 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.5304, allocations: 60.69 kB / 0.49 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.464e-05/0.5305, allocations: 35.94 kB / 0.49 GB, free: 9.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003418/0.5308, allocations: 271 kB / 0.4902 GB, free: 9.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5308, allocations: 0 / 0.4902 GB, free: 9.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001105/0.5319, allocations: 287 kB / 0.4905 GB, free: 8.812 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) * 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.002524/0.5345, allocations: 1.924 MB / 0.4924 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.536, allocations: 0.9673 MB / 0.4933 GB, free: 5.852 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.5361, allocations: 4 kB / 0.4933 GB, free: 5.848 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009079/0.537, allocations: 0.6538 MB / 0.494 GB, free: 5.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.5375, allocations: 75.89 kB / 0.4941 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004472/0.5419, allocations: 1.815 MB / 0.4958 GB, free: 3.242 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.5425, allocations: 1.014 MB / 0.4968 GB, free: 2.203 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003457/0.5428, allocations: 81.33 kB / 0.4969 GB, free: 2.121 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.5432, allocations: 323.3 kB / 0.4972 GB, free: 1.805 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5432, allocations: 0 / 0.4972 GB, free: 1.805 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03665/0.5799, allocations: 16.02 MB / 0.5128 GB, free: 1.766 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.5801, allocations: 162 kB / 0.513 GB, free: 1.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/2.869, allocations: 0 / 0.513 GB, free: 1.57 MB / 394.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