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.001494/0.001494, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 89.39 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.368e-05/2.375e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3343, allocations: 47.57 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.4757, allocations: 86.3 MB / 448.7 MB, free: 15.9 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.476, allocations: 80.7 kB / 448.8 MB, free: 15.82 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09292/0.569, allocations: 22.2 MB / 471 MB, free: 9.508 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.569, allocations: 4 kB / 471 MB, free: 9.504 MB / 363.1 MB Notification: Performance of Transformations before backend: time 5.924e-05/0.5691, allocations: 19.98 kB / 471 MB, free: 9.484 MB / 363.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.003975/0.5731, allocations: 1.148 MB / 472.2 MB, free: 8.285 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.5731, allocations: 15.97 kB / 472.2 MB, free: 8.27 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003451/0.5766, allocations: 366.4 kB / 472.6 MB, free: 7.91 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.5782, allocations: 0.5511 MB / 473.1 MB, free: 7.312 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-05/0.5783, allocations: 32 kB / 473.1 MB, free: 7.281 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.5785, allocations: 60 kB / 473.2 MB, free: 7.223 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002494/0.581, allocations: 0.7812 MB / 474 MB, free: 6.438 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.5836, allocations: 0.8377 MB / 474.8 MB, free: 5.555 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.284e-05/0.5837, allocations: 8 kB / 474.8 MB, free: 5.547 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.5839, allocations: 0 / 474.8 MB, free: 5.547 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.146e-05/0.5839, allocations: 27.95 kB / 474.9 MB, free: 5.52 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009724/0.5937, allocations: 3.614 MB / 478.5 MB, free: 1.73 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003817/0.5975, allocations: 2.421 MB / 480.9 MB, free: 14.95 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.5987, allocations: 356 kB / 481.2 MB, free: 14.6 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.5989, allocations: 97.88 kB / 481.3 MB, free: 14.48 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.5999, allocations: 432 kB / 481.8 MB, free: 14.03 MB / 379.1 MB Notification: Performance of pre-optimization done (n=86): time 5.56e-06/0.6, allocations: 4 kB / 481.8 MB, free: 14.03 MB / 379.1 MB Notification: Performance of matching and sorting (n=86): time 0.002993/0.603, allocations: 0.8216 MB / 482.6 MB, free: 13.2 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.6031, allocations: 200.7 kB / 482.8 MB, free: 12.96 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007176/0.6039, allocations: 365 kB / 483.1 MB, free: 12.59 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001362/0.604, allocations: 29.7 kB / 483.2 MB, free: 12.56 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004355/0.6045, allocations: 469.9 kB / 483.6 MB, free: 12.09 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/0.6048, allocations: 275.9 kB / 483.9 MB, free: 11.82 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.657e-05/0.6049, allocations: 0 / 483.9 MB, free: 11.82 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.6051, allocations: 349 kB / 484.2 MB, free: 11.47 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006379/0.6057, allocations: 222.6 kB / 484.5 MB, free: 11.26 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008923/0.6066, allocations: 469.2 kB / 484.9 MB, free: 10.7 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.6079, allocations: 352.2 kB / 485.3 MB, free: 10.35 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.6079, allocations: 4 kB / 485.3 MB, free: 10.35 MB / 379.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003107/0.611, allocations: 0.9278 MB / 486.2 MB, free: 9.406 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.6111, allocations: 8 kB / 486.2 MB, free: 9.398 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.337e-05/0.6111, allocations: 11.95 kB / 486.2 MB, free: 9.387 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.6125, allocations: 271.8 kB / 486.5 MB, free: 9.117 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.6138, allocations: 163.7 kB / 486.6 MB, free: 8.957 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/0.6212, allocations: 4.189 MB / 490.8 MB, free: 4.543 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.6224, allocations: 95.06 kB / 490.9 MB, free: 4.449 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.6226, allocations: 44.05 kB / 491 MB, free: 4.406 MB / 379.1 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.0003347/0.6229, allocations: 136.8 kB / 491.1 MB, free: 4.266 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002846/0.6258, allocations: 0.821 MB / 491.9 MB, free: 3.434 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/0.626, allocations: 67.16 kB / 492 MB, free: 3.367 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.6291, allocations: 0.8876 MB / 492.9 MB, free: 2.465 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.6292, allocations: 10.91 kB / 492.9 MB, free: 2.457 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6292, allocations: 4 kB / 492.9 MB, free: 2.453 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.6292, allocations: 3.984 kB / 492.9 MB, free: 2.449 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/0.6342, allocations: 1.737 MB / 494.6 MB, free: 0.6523 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.6343, allocations: 4 kB / 494.6 MB, free: 0.6484 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009393/0.6352, allocations: 107.8 kB / 494.7 MB, free: 0.543 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001286/0.6365, allocations: 249.7 kB / 495 MB, free: 300 kB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.582e-05/0.6366, allocations: 11.98 kB / 495 MB, free: 288 kB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007241/0.6439, allocations: 4.173 MB / 499.2 MB, free: 11.86 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.6439, allocations: 0 / 499.2 MB, free: 11.86 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/0.6476, allocations: 1.264 MB / 0.4887 GB, free: 10.57 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004957/0.6482, allocations: 212 kB / 0.4889 GB, free: 10.34 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.6483, allocations: 9.031 kB / 0.4889 GB, free: 10.33 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000828/0.6492, allocations: 39.95 kB / 0.4889 GB, free: 10.29 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.6494, allocations: 68.62 kB / 0.489 GB, free: 10.23 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/0.6495, allocations: 31.94 kB / 0.489 GB, free: 10.2 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0004844/0.65, allocations: 271 kB / 0.4893 GB, free: 9.93 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.65, allocations: 0 / 0.4893 GB, free: 9.93 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001669/0.6517, allocations: 287 kB / 0.4896 GB, free: 9.648 MB / 395.1 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.004308/0.6561, allocations: 1.931 MB / 0.4915 GB, free: 7.676 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.6588, allocations: 0.9637 MB / 0.4924 GB, free: 6.691 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/0.6588, allocations: 4 kB / 0.4924 GB, free: 6.688 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.6605, allocations: 0.669 MB / 0.4931 GB, free: 6 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.6614, allocations: 67.95 kB / 0.4931 GB, free: 5.938 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007635/0.669, allocations: 1.852 MB / 0.4949 GB, free: 4.031 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008002/0.6699, allocations: 1.018 MB / 0.4959 GB, free: 2.988 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007854/0.6707, allocations: 327.3 kB / 0.4962 GB, free: 2.668 MB / 395.1 MB Notification: Performance of SimCode: time 1.442e-06/0.6707, allocations: 4 kB / 0.4962 GB, free: 2.664 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.75/4.42, allocations: 20.29 MB / 0.516 GB, free: 109.9 MB / 395.1 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