Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008402/0.0008402, allocations: 88.62 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007939/0.000794, allocations: 183.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 241.2 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003436, allocations: 7.625 kB / 300.9 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.102, allocations: 50.42 MB / 351.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005739/0.1078, allocations: 5.395 MB / 356.7 MB, free: 6.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00352/0.1114, allocations: 1.975 MB / 358.7 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006023/0.112, allocations: 19.94 kB / 358.7 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005929/0.1126, allocations: 198.8 kB / 358.9 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001832/0.1145, allocations: 0.6141 MB / 359.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009661/0.1154, allocations: 367.3 kB / 359.9 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.1168, allocations: 1.066 MB / 361 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.1184, allocations: 0.9434 MB / 361.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005315/0.1189, allocations: 362.5 kB / 362.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005493/0.1195, allocations: 445.9 kB / 362.7 MB, free: 216 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.003e-05/0.1196, allocations: 48 kB / 362.7 MB, free: 168 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005805/0.1202, allocations: 195.9 kB / 362.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.1203, allocations: 171.2 kB / 363.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.1206, allocations: 213.2 kB / 363.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.1216, allocations: 1.067 MB / 364.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.1216, allocations: 0 / 364.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1217, allocations: 3.938 kB / 364.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.1217, allocations: 0 / 364.4 MB, free: 14.52 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.002578/0.1243, allocations: 1.263 MB / 365.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.459e-05/0.1243, allocations: 12.03 kB / 365.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002158/0.1246, allocations: 158.2 kB / 365.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/0.1266, allocations: 366.4 kB / 366.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/0.1274, allocations: 0.5567 MB / 366.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.852e-05/0.1275, allocations: 78 kB / 366.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1276, allocations: 96 kB / 366.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.1294, allocations: 1.024 MB / 367.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.1294, allocations: 4 kB / 367.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.934e-05/0.1295, allocations: 43.95 kB / 368 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.1296, allocations: 24 kB / 368 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.1312, allocations: 0.8745 MB / 368.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.1361, allocations: 3.562 MB / 372.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.1382, allocations: 1.907 MB / 374.3 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008421/0.1391, allocations: 471.5 kB / 374.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.1392, allocations: 93.75 kB / 374.9 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008551/0.1401, allocations: 0.4969 MB / 375.4 MB, free: 2.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.434e-06/0.1401, allocations: 0 / 375.4 MB, free: 2.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004188/0.1443, allocations: 1.706 MB / 377.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1444, allocations: 192.9 kB / 377.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005176/0.1449, allocations: 461.8 kB / 377.7 MB, free: 492 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.145, allocations: 41.7 kB / 377.8 MB, free: 444 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.1453, allocations: 411.6 kB / 378.2 MB, free: 24 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.1455, allocations: 280 kB / 378.4 MB, free: 15.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/0.1455, allocations: 16 kB / 378.5 MB, free: 15.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1457, allocations: 374.8 kB / 378.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.1462, allocations: 281.8 kB / 379.1 MB, free: 15.08 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006223/0.1469, allocations: 487.2 kB / 379.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005799/0.1474, allocations: 347 kB / 379.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1475, allocations: 0 / 379.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001862/0.1493, allocations: 1.042 MB / 381 MB, free: 13.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1494, allocations: 8 kB / 381 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1494, allocations: 4 kB / 381 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008059/0.1502, allocations: 269.1 kB / 381.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.1507, allocations: 159.7 kB / 381.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004655/0.1554, allocations: 4.39 MB / 385.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/0.156, allocations: 103.2 kB / 385.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/0.156, allocations: 36 kB / 385.9 MB, free: 7.898 MB / 318.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.0003927/0.1564, allocations: 245.5 kB / 386.2 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.286e-05/0.1565, allocations: 75.2 kB / 386.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.1584, allocations: 0.9787 MB / 387.2 MB, free: 6.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1584, allocations: 8 kB / 387.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1584, allocations: 0 / 387.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.1584, allocations: 8.172 kB / 387.2 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.1613, allocations: 1.937 MB / 389.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1613, allocations: 7.969 kB / 389.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.1617, allocations: 95.89 kB / 389.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007027/0.1624, allocations: 265.6 kB / 389.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.143e-05/0.1625, allocations: 27.98 kB / 389.5 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004336/0.1668, allocations: 4.336 MB / 393.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1668, allocations: 7.969 kB / 393.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.1692, allocations: 1.4 MB / 395.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.1694, allocations: 208.1 kB / 395.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.1695, allocations: 20 kB / 395.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/0.1699, allocations: 51.97 kB / 395.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.1701, allocations: 68.86 kB / 395.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.1702, allocations: 23.98 kB / 395.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.1705, allocations: 310.9 kB / 396 MB, free: 13.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1705, allocations: 0 / 396 MB, free: 13.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009988/0.1715, allocations: 311.1 kB / 396.3 MB, free: 13.13 MB / 334.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.002581/0.1741, allocations: 1.992 MB / 398.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.1759, allocations: 1.1 MB / 399.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1759, allocations: 3.938 kB / 399.4 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.177, allocations: 0.7476 MB / 400.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/0.1776, allocations: 121.9 kB / 400.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006757/0.1844, allocations: 4.597 MB / 404.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005364/0.1849, allocations: 0.9942 MB / 405.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003627/0.1853, allocations: 85.31 kB / 405.9 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003895/0.1857, allocations: 323.3 kB / 406.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1857, allocations: 0 / 406.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03356/0.2193, allocations: 17.2 MB / 423.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.2195, allocations: 228 kB / 423.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/2.525, allocations: 0 / 423.6 MB, free: 1.785 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat