Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009601/0.00096, allocations: 94.22 kB / 16.99 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 197.5 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002487, allocations: 4 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1121, allocations: 51.5 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006079/0.1182, allocations: 5.434 MB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004118/0.1224, allocations: 2.029 MB / 365.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007291/0.1231, allocations: 19.94 kB / 365.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006158/0.1238, allocations: 206.7 kB / 366 MB, free: 6.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.1251, allocations: 0.4934 MB / 366.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008738/0.126, allocations: 379.2 kB / 366.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.127, allocations: 1.078 MB / 367.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.1286, allocations: 0.9296 MB / 368.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005675/0.1291, allocations: 374.4 kB / 369.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005324/0.1297, allocations: 453.9 kB / 369.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.967e-05/0.1298, allocations: 48 kB / 369.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004937/0.1303, allocations: 207.8 kB / 369.9 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.1305, allocations: 175.2 kB / 370.1 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.1307, allocations: 213.1 kB / 370.3 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009896/0.1316, allocations: 1.083 MB / 371.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1317, allocations: 0 / 371.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1317, allocations: 0 / 371.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1317, allocations: 0 / 371.4 MB, free: 0.7852 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.2011/0.3328, allocations: 1.27 MB / 372.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.3329, allocations: 10.06 kB / 372.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005581/0.3335, allocations: 162.6 kB / 372.8 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004227/0.3377, allocations: 413 kB / 373.2 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.3395, allocations: 0.5519 MB / 373.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.3397, allocations: 76.12 kB / 373.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002538/0.3399, allocations: 103.8 kB / 374 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003754/0.3437, allocations: 1.027 MB / 375 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.067e-05/0.3438, allocations: 4.047 kB / 375 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/0.344, allocations: 41.55 kB / 375 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.199e-05/0.3441, allocations: 27.66 kB / 375.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003555/0.3477, allocations: 0.8715 MB / 375.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.358, allocations: 3.659 MB / 379.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003882/0.362, allocations: 1.908 MB / 381.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.3638, allocations: 472.7 kB / 382 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002405/0.364, allocations: 177.3 kB / 382.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001581/0.3657, allocations: 0.4946 MB / 382.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 5.661e-06/0.3657, allocations: 0 / 382.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.008372/0.3741, allocations: 1.705 MB / 384.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.3742, allocations: 196.5 kB / 384.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.3756, allocations: 468.5 kB / 385 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001242/0.3758, allocations: 42.84 kB / 385 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005129/0.3763, allocations: 418 kB / 385.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.3767, allocations: 273.2 kB / 385.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-05/0.3768, allocations: 23.59 kB / 385.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.377, allocations: 373.3 kB / 386.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.3782, allocations: 278.9 kB / 386.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.3795, allocations: 492.4 kB / 386.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.3808, allocations: 337.5 kB / 387.2 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.3809, allocations: 5.562 kB / 387.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.004063/0.3849, allocations: 1.045 MB / 388.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.385, allocations: 12.78 kB / 388.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/0.385, allocations: 5.406 kB / 388.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.3868, allocations: 273.6 kB / 388.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.388, allocations: 149.2 kB / 388.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008343/0.3963, allocations: 4.402 MB / 393 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.3978, allocations: 106.1 kB / 393.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001833/0.398, allocations: 37.94 kB / 393.2 MB, free: 6.801 MB / 302.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.00093/0.399, allocations: 242.8 kB / 393.4 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.3993, allocations: 73.69 kB / 393.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.4029, allocations: 0.9802 MB / 394.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.4029, allocations: 9.344 kB / 394.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4029, allocations: 0 / 394.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.4029, allocations: 5.359 kB / 394.5 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005355/0.4083, allocations: 1.942 MB / 396.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.4083, allocations: 1.375 kB / 396.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008105/0.4092, allocations: 106.3 kB / 396.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.4105, allocations: 264.9 kB / 396.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-05/0.4106, allocations: 21.58 kB / 396.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007398/0.418, allocations: 4.35 MB / 401.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.4181, allocations: 4.031 kB / 401.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004063/0.4221, allocations: 1.399 MB / 402.6 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000601/0.4228, allocations: 218.6 kB / 402.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.423, allocations: 23.86 kB / 402.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008786/0.4239, allocations: 47.44 kB / 402.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.4242, allocations: 68.14 kB / 402.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.784e-05/0.4243, allocations: 23.31 kB / 402.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006882/0.425, allocations: 318.6 kB / 403.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.425, allocations: 0 / 403.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002162/0.4272, allocations: 314.4 kB / 403.6 MB, free: 15.47 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.005256/0.4324, allocations: 2.003 MB / 405.6 MB, free: 13.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003736/0.4362, allocations: 1.1 MB / 406.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/0.4363, allocations: 4.188 kB / 406.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.4384, allocations: 0.7409 MB / 407.4 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.4399, allocations: 120 kB / 407.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/0.4534, allocations: 4.691 MB / 412.2 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009322/0.4544, allocations: 1.002 MB / 413.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007411/0.4552, allocations: 81.44 kB / 413.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006626/0.4558, allocations: 327.3 kB / 413.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4559, allocations: 0 / 413.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05367/0.5095, allocations: 17.46 MB / 431.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/0.5098, allocations: 233.6 kB / 431.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/2.776, allocations: 0 / 431.3 MB, free: 4.02 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat