Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_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.0008927/0.0008927, allocations: 93.2 kB / 16.3 MB, free: 5.996 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.001015/0.001015, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.216/1.216, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2848/0.2848, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002969, allocations: 8 kB / 400.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.248, allocations: 59.16 MB / 459.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.005615/0.2537, allocations: 6.652 MB / 465.9 MB, free: 25.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003093/0.2568, allocations: 2.352 MB / 468.2 MB, free: 23.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003441/0.2572, allocations: 43.41 kB / 468.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.2576, allocations: 167.1 kB / 468.4 MB, free: 23.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009206/0.2585, allocations: 488.1 kB / 468.9 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006926/0.2592, allocations: 345.7 kB / 469.2 MB, free: 23.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006832/0.2599, allocations: 0.6728 MB / 469.9 MB, free: 22.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.261, allocations: 0.8395 MB / 470.8 MB, free: 22.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.2614, allocations: 386.2 kB / 471.1 MB, free: 22.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006368/0.2621, allocations: 492.9 kB / 471.6 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.297e-05/0.2622, allocations: 45.25 kB / 471.7 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006841/0.2629, allocations: 445.2 kB / 472.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003752/0.2633, allocations: 379.1 kB / 472.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.2634, allocations: 191.5 kB / 472.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.2645, allocations: 1.103 MB / 473.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2645, allocations: 0 / 473.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2645, allocations: 0 / 473.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.2645, allocations: 0 / 473.8 MB, free: 21.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002159/0.2667, allocations: 1.208 MB / 475 MB, free: 20.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.2668, allocations: 9.5 kB / 475 MB, free: 20.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001541/0.2669, allocations: 146.5 kB / 475.1 MB, free: 20.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006706/0.2676, allocations: 150.3 kB / 475.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.2687, allocations: 0.6469 MB / 475.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.2689, allocations: 176.8 kB / 476.1 MB, free: 20.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.269, allocations: 94.69 kB / 476.2 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/0.2709, allocations: 1.364 MB / 477.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.271, allocations: 1.438 kB / 477.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.448e-05/0.271, allocations: 43.86 kB / 477.6 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.2712, allocations: 66.48 kB / 477.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.2733, allocations: 1.338 MB / 479 MB, free: 18.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/0.279, allocations: 4.964 MB / 484 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.2808, allocations: 1.213 MB / 485.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-05/0.2809, allocations: 8.609 kB / 485.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.2809, allocations: 47.06 kB / 485.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.034e-06/0.2809, allocations: 0 / 485.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004612/0.2855, allocations: 3.361 MB / 488.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.2856, allocations: 81.67 kB / 488.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.2859, allocations: 461.9 kB / 489.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.286, allocations: 41.73 kB / 489.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.2861, allocations: 399.3 kB / 489.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.2863, allocations: 260.3 kB / 489.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.2863, allocations: 12 kB / 489.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.459e-05/0.2864, allocations: 374.8 kB / 490.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007299/0.2871, allocations: 0.5134 MB / 490.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007769/0.2879, allocations: 0.7067 MB / 491.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007951/0.2887, allocations: 0.5848 MB / 492 MB, free: 6.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2887, allocations: 0 / 492 MB, free: 6.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.003573/0.2923, allocations: 2.103 MB / 494.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2923, allocations: 11.95 kB / 494.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003175/0.2955, allocations: 1.84 MB / 495.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001474/0.297, allocations: 0.6924 MB / 496.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/0.2975, allocations: 163.7 kB / 496.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/0.3079, allocations: 7.242 MB / 0.4922 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.3086, allocations: 92.12 kB / 0.4923 GB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.255e-05/0.3087, allocations: 31.98 kB / 0.4923 GB, free: 9.957 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 74 * Array equations: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.0004734/0.3092, allocations: 305.5 kB / 0.4926 GB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3093, allocations: 63.2 kB / 0.4927 GB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.3115, allocations: 1.328 MB / 0.494 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.929e-05/0.3116, allocations: 20 kB / 0.494 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.3116, allocations: 0 / 0.494 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.3116, allocations: 3.984 kB / 0.494 GB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00382/0.3154, allocations: 2.426 MB / 0.4964 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3154, allocations: 4 kB / 0.4964 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002665/0.3181, allocations: 0.6361 MB / 0.497 GB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.896e-05/0.3182, allocations: 24.84 kB / 0.497 GB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.85e-05/0.3183, allocations: 31.94 kB / 0.4971 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009007/0.3192, allocations: 1.392 MB / 0.4984 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3192, allocations: 7.969 kB / 0.4984 GB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00309/0.3223, allocations: 2.097 MB / 0.5005 GB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.3224, allocations: 144.1 kB / 0.5006 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.662e-05/0.3225, allocations: 16 kB / 0.5006 GB, free: 1.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.3231, allocations: 75.91 kB / 0.5007 GB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3232, allocations: 60.47 kB / 0.5007 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.7e-05/0.3233, allocations: 20 kB / 0.5008 GB, free: 0.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.3236, allocations: 314.9 kB / 0.5011 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3236, allocations: 0 / 0.5011 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008796/0.3245, allocations: 236.1 kB / 0.5013 GB, free: 432 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003485/0.328, allocations: 2.956 MB / 0.5042 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002645/0.3306, allocations: 1.59 MB / 0.5057 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3307, allocations: 0 / 0.5057 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002675/0.3333, allocations: 1.158 MB / 0.5069 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006802/0.334, allocations: 143.9 kB / 0.507 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.3459, allocations: 10.47 MB / 0.5172 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006645/0.3466, allocations: 1.091 MB / 0.5183 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000558/0.3472, allocations: 209.5 kB / 0.5185 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.3476, allocations: 283.3 kB / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3476, allocations: 0 / 0.5188 GB, free: 14.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.382, allocations: 18.98 MB / 0.5373 GB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.3823, allocations: 210.9 kB / 0.5375 GB, free: 11.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.334, allocations: 3.938 kB / 0.5375 GB, free: 11.23 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.mat does not exist to compare? outputFormat=mat